1
0
mirror of https://github.com/django/django.git synced 2025-11-07 07:15:35 +00:00

Fixed #23913 -- Deprecated the = comparison in if template tag.

This commit is contained in:
Ola Sitarska
2014-12-01 21:20:37 +00:00
committed by Tim Graham
parent 412066e71e
commit d563e3be68
6 changed files with 68 additions and 3 deletions

View File

@@ -1492,6 +1492,12 @@ absolute path. This is of limited use in most deployment situations, and
the :ttag:`include` tag often makes more sense. This tag is now deprecated and
will be removed in Django 2.0.
``=`` as comparison operator in ``if`` template tag
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Using a single equals sign with the ``{% if %}`` template tag for equality
testing was undocumented and untested. It's now deprecated in favor of ``==``.
.. removed-features-1.8:
Features removed in 1.8