Django: Filtering datetime field by *only* the year value?
- by unclaimedbaggage
Hi folks,
I'm trying to spit out a django page which lists all entries by the year they were created. So, for example:
2010:
Note 4
Note 5
Note 6
2009:
Note 1
Note 2
Note 3
It's proving more difficult than I would have expected. The model from which the data comes is below:
class Note(models.Model):
business =…