Thanks, i'd just worked that out, was about to come and post it. Thanks though.
On 12 Aug, 20:23, Dj Gilcrease <digitalx...@gmail.com> wrote: > On Wed, Aug 12, 2009 at 12:02 PM, When ideas > > fail<andrewkenyon...@gmail.com> wrote: > > def months_archive(request, year, month): > > blog_posts = Post.objects.all().order_by("-post_date") > > blog_posts = Post.objects.filter(post_date__year=year, > post_date__month=month).order_by("-post_date") --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---