Convert multiple conditions to nested if in template since Django has a bug with conditionals in templates.
--- a/project/templates/registration/manage_payments.html Tue Nov 16 18:08:30 2010 +0530
+++ b/project/templates/registration/manage_payments.html Tue Nov 16 18:33:10 2010 +0530
@@ -14,9 +14,11 @@
<tr class="{% cycle odd,even %}">
<th>
<label
- {% if registrant.registrant.payment_set.get.type or registrant.registrant.payment_set.get.details and not registrant.registrant.payment_set.get.confirmed %}
- class="alert"
- {% endif %}
+ {% if registrant.registrant.payment_set.get.type or registrant.registrant.payment_set.get.details %}
+ {% if not registrant.registrant.payment_set.get.confirmed %}
+ class="alert"
+ {% endif %}
+ {% endif %}
for="id_{{ registrant.registrant.id }}_label">
{{ registrant.registrant.get_full_name }}
</label>