+ def all_published(self):
+ return super().get_queryset().filter(status=1).annotate(publication_date=Coalesce('published_at', 'created_at')).order_by('-publication_date')
+
+ def all(self):
+ return super().all().annotate(publication_date=Coalesce('published_at', 'created_at')).order_by('-publication_date')
+