Modified template if tags to be compliant with Django 1.1 and not 1.2. anoop
authorMadhusudan.C.S <madhusudancs@gmail.com>
Fri, 06 Aug 2010 15:11:47 +0530
branchanoop
changeset 221 b0fd3cb56e0b
parent 220 1ecfbc16a70d
child 222 443bbd61e84b
Modified template if tags to be compliant with Django 1.1 and not 1.2.
templates/send_acco_cnf.html
--- a/templates/send_acco_cnf.html	Fri Aug 06 15:11:01 2010 +0530
+++ b/templates/send_acco_cnf.html	Fri Aug 06 15:11:47 2010 +0530
@@ -44,13 +44,13 @@
         {% endif %}
       </td>
       <td>
-        {% if m.participantinfo_set.get.will_sprint == '1' %}
+        {% ifequal m.participantinfo_set.get.will_sprint '1' %}
           No
-        {% else %}{% if m.participantinfo_set.get.will_sprint == '2' %}
+        {% else %}{% ifequal m.participantinfo_set.get.will_sprint '2' %}
           May be
         {% else %}
           Yes
-        {% endif %}{% endif %}
+        {% endifequal %}{% endifequal %}
       </td>
       <td>
         {% if m.participantinfo_set.get.sprinted_already %}
@@ -60,15 +60,15 @@
         {% endif %}
       </td>
       <td>
-        {% if m.registrantinfo_set.get.acco_location == '0' %}
+        {% ifequal m.registrantinfo_set.get.acco_location '0' %}
           IITB Hostel
-        {% else %}{% if m.registrantinfo_set.get.acco_location == '1' %}
+        {% else %}{% ifequal m.registrantinfo_set.get.acco_location '1' %}
           IITB Guest House
-        {% else %}{% if m.registrantinfo_set.get.acco_location == '2' %}
+        {% else %}{% ifequal m.registrantinfo_set.get.acco_location '2' %}
           NITIE
         {% else %}
           Not alloted
-        {% endif %}{% endif %}{% endif %}
+        {% endifequal %}{% endifequal %}{% endifequal %}
       </td>
     </tr>
   {% endfor %}
@@ -105,13 +105,13 @@
         {% endif %}
       </td>
       <td>
-        {% if m.participantinfo_set.get.will_sprint == '1' %}
+        {% ifequal m.participantinfo_set.get.will_sprint '1' %}
           No
-        {% else %}{% if m.participantinfo_set.get.will_sprint == '2' %}
+        {% else %}{% ifequal m.participantinfo_set.get.will_sprint '2' %}
           May be
         {% else %}
           Yes
-        {% endif %}{% endif %}
+        {% endifequal %}{% endifequal %}
       </td>
       <td>
         {% if m.participantinfo_set.get.sprinted_already %}
@@ -121,15 +121,15 @@
         {% endif %}
       </td>
       <td>
-        {% if m.registrantinfo_set.get.acco_location == '0' %}
+        {% ifequal m.registrantinfo_set.get.acco_location '0' %}
           IITB Hostel
-        {% else %}{% if m.registrantinfo_set.get.acco_location == '1' %}
+        {% else %}{% ifequal m.registrantinfo_set.get.acco_location '1' %}
           IITB Guest House
-        {% else %}{% if m.registrantinfo_set.get.acco_location == '2' %}
+        {% else %}{% ifequal m.registrantinfo_set.get.acco_location '2' %}
           NITIE
         {% else %}
           Not alloted
-        {% endif %}{% endif %}{% endif %}
+        {% endifequal %}{% endifequal %}{% endifequal %}
       </td>
     </tr>
   {% endfor %}
@@ -164,13 +164,13 @@
         {% endif %}
       </td>
       <td>
-        {% if m.participantinfo_set.get.will_sprint == '1' %}
+        {% ifequal m.participantinfo_set.get.will_sprint '1' %}
           No
-        {% else %}{% if m.participantinfo_set.get.will_sprint == '2' %}
+        {% else %}{% ifequal m.participantinfo_set.get.will_sprint '2' %}
           May be
         {% else %}
           Yes
-        {% endif %}{% endif %}
+        {% endifequal %}{% endifequal %}
       </td>
       <td>
         {% if m.participantinfo_set.get.sprinted_already %}
@@ -180,15 +180,15 @@
         {% endif %}
       </td>
       <td>
-        {% if m.registrantinfo_set.get.acco_location == '0' %}
+        {% ifequal m.registrantinfo_set.get.acco_location '0' %}
           IITB Hostel
-        {% else %}{% if m.registrantinfo_set.get.acco_location == '1' %}
+        {% else %}{% ifequal m.registrantinfo_set.get.acco_location '1' %}
           IITB Guest House
-        {% else %}{% if m.registrantinfo_set.get.acco_location == '2' %}
+        {% else %}{% ifequal m.registrantinfo_set.get.acco_location '2' %}
           NITIE
         {% else %}
           Not alloted
-        {% endif %}{% endif %}{% endif %}
+        {% endifequal %}{% endifequal %}{% endifequal %}
       </td>
     </tr>
   {% endfor %}