Django: Filtering datetime field by *only* the year value?
Either construct custom SQL or use
date_list = Note.objects.all().dates('created', 'year')
for years in date_list:
Note.objects.filter(created__year = years.year)
This is the way it is done in date based generic views.
You can use django.views.generic.date_based.archive_year or use year field lookup.