In the model \'entered\' is a datetime field. I want to query the data to find all entry\'s that where made between noon(start_time) and 5:00pm (end_time).
s
Using SQLite as an example, a relatively clean and generic solution would be:
Entry.objects.extra(where=["time(entered) between '%s' and '%s'"], params=[start_time.strftime("%H:%M"), end_time.strftime("%H:%M")])