[Django] #31532: Deprecate {% ifequal %} and {% ifnotequal %} template tags in favor of {% if %}.

55 views
Skip to first unread message

Django

unread,
May 3, 2020, 10:52:26 AM5/3/20
to django-...@googlegroups.com
#31532: Deprecate {% ifequal %} and {% ifnotequal %} template tags in favor of {%
if %}.
------------------------------------------------+------------------------
Reporter: Jon Dufresne | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Template system | Version: master
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
------------------------------------------------+------------------------
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.

--
Ticket URL: <https://code.djangoproject.com/ticket/31532>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
May 3, 2020, 10:57:52 AM5/3/20
to django-...@googlegroups.com
#31532: Deprecate {% ifequal %} and {% ifnotequal %} template tags in favor of {%
if %}.
-------------------------------------+-------------------------------------

Reporter: Jon Dufresne | Owner: nobody
Type: | Status: new
Cleanup/optimization |

Component: Template system | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage:
| Unreviewed
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Jon Dufresne):

* has_patch: 0 => 1


Comment:

https://github.com/django/django/pull/12851

--
Ticket URL: <https://code.djangoproject.com/ticket/31532#comment:1>

Django

unread,
May 4, 2020, 12:08:09 AM5/4/20
to django-...@googlegroups.com
#31532: Deprecate {% ifequal %} and {% ifnotequal %} template tags in favor of {%
if %}.
-------------------------------------+-------------------------------------

Reporter: Jon Dufresne | Owner: nobody
Type: | Status: closed
Cleanup/optimization |

Component: Template system | Version: master
Severity: Normal | Resolution: duplicate

Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by felixxm):

* status: new => closed
* has_patch: 1 => 0
* resolution: => duplicate


Comment:

Duplicate of #25236.

--
Ticket URL: <https://code.djangoproject.com/ticket/31532#comment:2>

Reply all
Reply to author
Forward
0 new messages