Entry.objects.filter(pub_date__hour = x)
not supported in django 1.2 - only year, month, day, week_day.
Use something like this:
Entry.objects.filter(pub_date__regex = '08:00')
or
Entry.objects.filter(pub_date__contains = '08:00')
which will give you all Entry objects with a clock (for all years).
source
share