I've got a field in one model like:
class Sample(models.Model): date = fields.DateField(auto_now=False)
Now, I need to filter the objects by a date range.
How do I filter all the objects that have a date between
Or if you are just trying to filter month wise:
As Bernhard Vallant said, if you want a queryset which excludes the
specified range ends you should consider his solution, which utilizes gt/lt (greater-than/less-than).