Django filter by hour
Posted
by DJPy
on Stack Overflow
See other posts from Stack Overflow
or by DJPy
Published on 2010-06-06T15:29:04Z
Indexed on
2010/06/06
15:32 UTC
Read the original article
Hit count: 190
I've found that link: http://code.djangoproject.com/attachment/ticket/8424/time_filters.diff and changed my django 1.2 files by adding taht what you can see there.
But now, when I'm trying to write Entry.objects.filter(pub_date__hour = x) - the result is following error:
Field has invalid lookup: hour
What should I do else, to make it work?
(sorry for my english)
© Stack Overflow or respective owner