intent: Django database query: How to filter objects by date range?
rewritten_intent: filter the objects in django model 'Sample' between date range `2011-01-01` and `2011-01-31`
snippet: Sample.objects.filter(date__range=['2011-01-01', '2011-01-31'])