human
Django database query: How to filter objects by date range?
assistant
Here is some code to filter the objects in django model 'Sample' between date range `2011-01-01` and `2011-01-31`

Sample.objects.filter(date__range=['2011-01-01', '2011-01-31'])

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.