1👍
✅
try this: (from django documentation 1.8)
data = Claim.objects.filter(
creation__year=someyear,
creation__month=somemonth,
)
p.s. use Field Lookups
to filter data based on field type
Source:stackexchange.com