summaryrefslogtreecommitdiff
path: root/docs/ref/templates
diff options
context:
space:
mode:
authorJon Dufresne <jon.dufresne@gmail.com>2020-05-02 18:04:51 -0700
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2020-05-11 09:07:33 +0200
commit72a170b4c3c4c2db8192bb1a6424bcc8eb533973 (patch)
treeba027dc00dc31cd0e2e8869e45eed35162bf1e98 /docs/ref/templates
parentd8cb8fdf40b92961a62effbc9231583901e258b5 (diff)
downloaddjango-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.txt3
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