Re: template ifequal substitution of value

2009-02-26 Thread Jesse
I figured out what to do. I created a new instance in the view.py: def search(request): newdate='1999' In the template I used the "Y" for both instances and was able to get the comparison to work: {% ifequal items.startdt|date:"Y" newdate|date:"Y" %} this does the correct compariso

template ifequal substitution of value

2009-02-25 Thread Jesse
I have two date fields: startdt and enddt. The template code that works is: {% ifequal items.startdt items.enddt %} this says startdt and enddt are the same (as seen in the template) {% endifequal %} In postgres I have a date value in the startdt and enddt fields stored like this: