On Wed, Aug 12, 2009 at 12:02 PM, When ideas
fail<[email protected]> 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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to