Django: time order in DateTime field
I have a datetime field.
date = models.DateTimeField()
I am trying to run a set of queries for all records on that date and then order them by time. I get all entries like this ...
todays_entries = model.objects.filter(date__range=(start_date, end_date))
I understand that if I wanted to order it by date, I would add an order_by ('date') method, but the time is still out of order ... how can I order the time?
+3
source to share
No one has answered this question yet
Check out similar questions: