Re: How do I Sort Years in Template

2007-05-23 Thread Frank Peterson
thanks, I had to use dictsortreversed and that puts them in newest year first :) --~--~-~--~~~---~--~~ 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.c

Re: How do I Sort Years in Template

2007-05-01 Thread [EMAIL PROTECTED]
I think you want something like {% for date in date_list|dictsort:"year" %} On May 1, 11:28 am, Frank Peterson <[EMAIL PROTECTED]> wrote: > Story archive > > {% for date in date_list %} > {{ date.year }} > {% endfor %} > > > Not sure how to do this --~--~-~--~~

How do I Sort Years in Template

2007-05-01 Thread Frank Peterson
Story archive {% for date in date_list %} {{ date.year }} {% endfor %} Not sure how to do this --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to dj