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
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
--~--~-~--~~
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
3 matches
Mail list logo