#23913: = comparison does work in templates although it shouldn't
-------------------------------------+-------------------------------------
Reporter: googol7 | Owner:
Type: | olasitarska
Cleanup/optimization | Status: assigned
Component: Template system | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by bmispelon):
For the record, this feature was introduced with the "smart if"
(2c2f5aee4d44836779fcd74c7782368914f9cfd1) which landed in 1.2. Before
that, you had to use `{% ifequal %}`.
I'll also note that this syntax is invalid in jinja2.
However, if we want to keep it around for stability's sake, we should at
least have tests for it.
I remain doubtful about the need to document it though as I don't think we
should encourage the practice.
--
Ticket URL: <https://code.djangoproject.com/ticket/23913#comment:4>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/065.5b28b2ad6afd1c2ca599a1ca69ad24d2%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.