diff --git a/exhibits/views.py b/exhibits/views.py index 8a4c805..2f0acb8 100644 --- a/exhibits/views.py +++ b/exhibits/views.py @@ -17,3 +17,6 @@ class ExhibitsAPIViewSet(PagesAPIViewSet): 'hero_thumb', 'authors', ] + + def get_queryset(self): + return self.model.objects.live().order_by("-last_published_at") diff --git a/ov_collections/views.py b/ov_collections/views.py index 0e2f040..93ad61d 100644 --- a/ov_collections/views.py +++ b/ov_collections/views.py @@ -14,3 +14,6 @@ class CollectionAPIViewSet(PagesAPIViewSet): 'introduction', 'cover_image', ] + + def get_queryset(self): + return self.model.objects.live().order_by("-last_published_at")