Answer the question
In order to leave comments, you need to log in
How to display entries for the last entries for the day?
How to get model records sent (field date_send, DateTimeField) for the last 24 hours?
Answer the question
In order to leave comments, you need to log in
SomeModel.objects.filter(date_send__date=date.today())
SomeModel.objects.filter(date_send__gte=date.today() - timedelta(days=1))
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question