Added a note about not using ifequal and ifnotequal to compare against True,
False, None, etc. git-svn-id: http://code.djangoproject.com/svn/django/trunk@3880 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
c0127f015b
commit
db6688a454
|
@ -540,6 +540,11 @@ The arguments can be hard-coded strings, so the following is valid::
|
||||||
...
|
...
|
||||||
{% endifequal %}
|
{% endifequal %}
|
||||||
|
|
||||||
|
It is only possible to compare an argument to template variables or strings.
|
||||||
|
You cannot check for equality with Python objects such as ``True`` or
|
||||||
|
``False``. If you need to test if something is true or false, use the ``if``
|
||||||
|
and ``ifnot`` tags instead.
|
||||||
|
|
||||||
ifnotequal
|
ifnotequal
|
||||||
~~~~~~~~~~
|
~~~~~~~~~~
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue