diff options
author | Jon Dufresne <jon.dufresne@gmail.com> | 2020-05-02 18:04:51 -0700 |
---|---|---|
committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-05-11 09:07:33 +0200 |
commit | 72a170b4c3c4c2db8192bb1a6424bcc8eb533973 (patch) | |
tree | ba027dc00dc31cd0e2e8869e45eed35162bf1e98 /docs/ref/templates | |
parent | d8cb8fdf40b92961a62effbc9231583901e258b5 (diff) | |
download | django-72a170b4c3c4c2db8192bb1a6424bcc8eb533973.tar.gz |
Fixed #25236 -- Deprecated {% ifequal %} and {% ifnotequal %} template tags.
The {% if %} tag provides all features of these tags.
Since Django 1.2 (May 17, 2010), the docs have hinted that
{% ifequal %} and {% ifnotequal %} will be deprecated in a future
Django version. Time to make it official.
Diffstat (limited to 'docs/ref/templates')
-rw-r--r-- | docs/ref/templates/builtins.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/ref/templates/builtins.txt b/docs/ref/templates/builtins.txt index cdb214c830..a8e8ad98f8 100644 --- a/docs/ref/templates/builtins.txt +++ b/docs/ref/templates/builtins.txt @@ -611,10 +611,11 @@ you should use:: ``ifequal`` and ``ifnotequal`` ------------------------------ +.. deprecated:: 3.1 + ``{% ifequal a b %} ... {% endifequal %}`` is an obsolete way to write ``{% if a == b %} ... {% endif %}``. Likewise, ``{% ifnotequal a b %} ... {% endifnotequal %}`` is superseded by ``{% if a != b %} ... {% endif %}``. -The ``ifequal`` and ``ifnotequal`` tags will be deprecated in a future release. .. templatetag:: ifchanged |