Hi Folks,
I'm not sure if this is a bug, but it seems like if I do a test with {%
ifequal %} for a string with spaces in it, I get a TemplateSyntaxError:
'ifequal' takes two arguments. Here's my code:
{% for tower in towers %}
{% ifequal tower.country "United Kingdom" %}
document.towers.elements[{{ forloop.counter0 }}].checked = 1;
{% endifequal %}
{% endfor %}
However, this seems to work fine (except that obviously it doesn't do
what I want it to do):
{% for tower in towers %}
{% ifequal tower.country "UnitedKingdom" %}
document.towers.elements[{{ forloop.counter0 }}].checked = 1;
{% endifequal %}
{% endfor %}
Thanks, Tom
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---