#26479: Add "is not" comparison to the if template tag
---------------------------------+-----------------------------------------
Reporter: alasdairnicol | Owner: alasdairnicol
Type: New feature | Status: new
Component: Template system | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+-----------------------------------------
Changes (by alasdairnicol):
* status: closed => new
* resolution: fixed =>
Comment:
Re-opening because I think we should we document (and add tests) for when
either or both of the variables are not in the template context.
As an aside, I can't see any tests for the != operator in the
[https://github.com/django/django/blob/c16b9dd8e0ae757616e9accbaffecc521191ee98/tests/template_tests/syntax_tests/test_if.py
test_if.py]. If I haven't overlooked them and they are missing, we could
open a separate ticket to add them.
--
Ticket URL: <https://code.djangoproject.com/ticket/26479#comment:5>
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/071.c3b7baae0fa1d72a7dad9eea9dca7cd2%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.