I have a model with field \"created_at\", and I have a list of dates. So, I want to get all the models that are created in the date range. How ?
I know that we ca
You can use range e.g.
first_date = datetime.date(2005, 1, 1) last_date = datetime.date(2005, 3, 31) queryset.filter(created_at__range=(first_date, last_date))