django datetime query filter limit code example
Example 1: django filter by date range
Sample.objects.filter(date__range=["2011-01-01", "2011-01-31"])
Example 2: django filter values with OR operator
Blog.objects.filter(pk__in=[1, 4, 7])
Sample.objects.filter(date__range=["2011-01-01", "2011-01-31"])
Blog.objects.filter(pk__in=[1, 4, 7])