Opened 11 years ago

Closed 11 years ago

Last modified 10 years ago

#256 closed defect (fixed)

(patch) add ifequal template tag to set of default tags

Reported by: alastair@… 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: UI/UX:

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)

django_ifequal_templatetag.diff (2.6 KB) - added by alastair@… 11 years ago.

Download all attachments as: .zip

Change History (4)

Changed 11 years ago by alastair@…

comment:1 Changed 11 years ago by anonymous

milestone: Version 1.0

comment:2 Changed 11 years ago by Adrian Holovaty

milestone: Version 1.0

comment:3 Changed 11 years ago by Adrian Holovaty

Resolution: fixed
Status: newclosed

Fixed in [574].

Note: See TracTickets for help on using tickets.
Back to Top