pub_date = models.DateTimeField(verbose_name=_('publishing date'))
pub_year = models.IntegerField()
pub_month = models.IntegerField()
How to do this GROUP BY query in Django's ORM with annotate and aggregate