Hello, if i have this view:
def months_archive(request, year, month):
blog_posts = Post.objects.all().order_by("-post_date")
...................
how can i filter the post objects by date?
I have a field post_date which is a datetime field, and i need it to
return all the posts written during the specified month in the year. I
had a few goes but i'm stuck. I'd appreciate any help.
Thanks
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---