1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00

Fixed #20336 -- Removed obsolete paragraph from the docs.

Thanks Baptiste Mispelon.
This commit is contained in:
Aymeric Augustin 2013-04-30 21:39:41 +02:00
parent 8f08f0afbb
commit ce45240df4

View File

@ -657,11 +657,6 @@ 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
:ttag:`if` tag instead.
An alternative to the ``ifequal`` tag is to use the :ttag:`if` tag and the An alternative to the ``ifequal`` tag is to use the :ttag:`if` tag and the
``==`` operator. ``==`` operator.