Re: django advent for 1.3

2011-04-21 Thread flowpoke
PURE WIN, Idan. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit

Finding Duration: Creating a context variable from two DateField model fields

2010-08-05 Thread flowpoke
I have a simple model that includes two DateField fields. I have everything passing to the template, as I would like but i'd like to add one more variable, duration. I want {{ duration }} to be that of the delta between the two DateField fields, in years. It's simple arithmetic but im not sure wher