How to filter a DateTimeField by date in Django?
class Model(models.Model):
test_date = models.DateTimeField(auto_add_now=True)
# filter
from datetime import date
Model.objects.filter(
test_date__year=date.today().year,
test_date__year=date.today().month,
test_date__year=date.today().day,
)