what is wrong with the above statement?
i have tried it with quotes around the 0 like "0" and that doesn't
help.
is it because there is an 'or'? i think complex expressions are
allowed in django.
thanks in advance.
http://docs.djangoproject.com/en/dev/ref/templates/builtins/
or
and
not
in
==, !=, <, >,``<=``, >=
(This follows Python exactly). So, for example, the following complex
if tag:
{% if a == b or c == d and e %}
..will be interpreted as:
(a == b) or ((c == d) and e)
I suspect you are using django 1.1.x and reading theDjango SVN trunk
documentation.
--
Ramiro Morales | http://rmorales.net
Yeah, sorry. I linked you to the trunk page.
Try this one:
http://docs.djangoproject.com/en/1.1/ref/templates/builtins/
Shawn