Opened 19 years ago

Closed 19 years ago

Last modified 18 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: 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)

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

Download all attachments as: .zip

Change History (4)

by alastair@…, 19 years ago

comment:1 by anonymous, 19 years ago

milestone: Version 1.0

comment:2 by Adrian Holovaty, 19 years ago

milestone: Version 1.0

comment:3 by Adrian Holovaty, 19 years ago

Resolution: fixed
Status: newclosed

Fixed in [574].

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