Re: {% ifequal %} Confusion

2008-11-23 Thread Malcolm Tredinnick
On Sun, 2008-11-23 at 21:52 -0800, Andy Young wrote: > Hi all, > > I've attempted a shortcut in an {% ifequal %} tag and ran into some > unexpected consequences. Basically, I have two DateFields in a model > named begin_date and end_date. I am iterating through field names > ({{ f }}) and thei

{% ifequal %} Confusion

2008-11-23 Thread Andy Young
Hi all, I've attempted a shortcut in an {% ifequal %} tag and ran into some unexpected consequences. Basically, I have two DateFields in a model named begin_date and end_date. I am iterating through field names ({{ f }}) and their corresponding values ({{ item|getattr:f }}) to populate a webpag