Skip to content

Conversation

jdufresne
Copy link
Member

@jdufresne jdufresne commented May 3, 2020

@jdufresne jdufresne changed the title Fixed #31532 -- Deprecated {% ifequal %} and {% ifnotequal %} template tags. Fixed #25236 -- Deprecated {% ifequal %} and {% ifnotequal %} template tags. May 4, 2020
@jdufresne
Copy link
Member Author

Based on the mailing list discussion, I added the following to the release notes:

``{% 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 through the :class:`'builtins' OPTION <django.template.backends.django.DjangoTemplates>`.

jdufresne added 2 commits May 11, 2020 07:56
…e 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.
Copy link
Member

@felixxm felixxm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jdufresne Thanks 👍 I pushed edits.

@felixxm felixxm merged commit 72a170b into django:master May 11, 2020
@jdufresne jdufresne deleted the deprecate-if-equal branch May 23, 2020 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants