#256 closed defect (fixed)
(patch) add ifequal template tag to set of default tags
Reported by: | Owned by: | Adrian Holovaty | |
---|---|---|---|
Component: | Template system | Version: | |
Severity: | normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
I'm not able to do something equivalent to:
{% ifequal user.id someobject.id %} {% endifequal %}
with the current default template tags. I just thought it would be useful to be able to do that given we have IfNotEqual. So here's a patch that adds that functionality.
Attachments (1)
Change History (4)
by , 19 years ago
Attachment: | django_ifequal_templatetag.diff added |
---|
comment:1 by , 19 years ago
milestone: | → Version 1.0 |
---|
comment:2 by , 19 years ago
milestone: | Version 1.0 |
---|
comment:3 by , 19 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Fixed in [574].