mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
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.
This commit is contained in:
committed by
Mariusz Felisiak
parent
d8cb8fdf40
commit
72a170b4c3
@@ -812,6 +812,13 @@ Miscellaneous
|
||||
* ``django.conf.urls.url()`` alias of :func:`django.urls.re_path` is
|
||||
deprecated.
|
||||
|
||||
* The ``{% ifequal %}`` and ``{% ifnotequal %}`` template tags are deprecated
|
||||
in favor of :ttag:`{% if %}<if>`. ``{% if %}`` covers all use cases, but if
|
||||
you need to continue using these tags, they can be extracted from Django to a
|
||||
module and included as a built-in tag in the :class:`'builtins'
|
||||
<django.template.backends.django.DjangoTemplates>` option in
|
||||
:setting:`OPTIONS <TEMPLATES-OPTIONS>`.
|
||||
|
||||
.. _removed-features-3.1:
|
||||
|
||||
Features removed in 3.1
|
||||
|
||||
Reference in New Issue
Block a user