Hello everyone,

I want to be able to list my entries by month year (January 2009,
December 2008, November 2008, etc). How would I do this?
Entry.objects.all() gives me everything and {% regroup latest by
pub_date.month as months %} gives the correct grouping but with the
wrong value since it gives me 10 instead of October and 12 instead of
December. What I want is something like:

January 2009
----------
EntryXXX - date
EntryXXX - date

December 2008

EntryXXX - date
EntryXXX - date

What is the way to do this?

Regards,

Martin Lundberg

--~--~---------~--~----~------------~-------~--~----~
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 this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to