ifequal Tag

Logic

Argument(s): values to compare.

Documentation

The ifequal and ifnotequal tags are deprecated in Django 3.1. Use {% if a == b %} and {% if a != b %} instead.

Commentary

Do not use.


Did we get something wrong? Is there a use case for the ifequal tag that we should add? Please let us know.

Send Feedback

Official Documentation
This page last updated on May 18, 2020, 8:09 a.m. EST