For the same project I previously posted the custom model manager for, I needed to get a list of just the years for all the entries in a queryset. After a bit of experimentation and going down a few dead alleys, I found my answer in the excellent Django documentation, with the .dates()
method.
Getting the unique years from a Django query
Tony Scida
@tonyskyday