diff --git a/apps/collection/views/common.py b/apps/collection/views/common.py index 5c7b2720..aa3c991a 100644 --- a/apps/collection/views/common.py +++ b/apps/collection/views/common.py @@ -17,8 +17,8 @@ class CollectionViewMixin(generics.GenericAPIView): def get_queryset(self): """Override get_queryset method.""" return models.Collection.objects.published() \ - .by_country_code(code=self.request.country_code) \ - .order_by('-on_top', '-modified') + .by_country_code(code=self.request.country_code) \ + .order_by('-on_top', '-created') class GuideViewMixin(generics.GenericAPIView): @@ -39,7 +39,7 @@ class CollectionHomePageView(CollectionListView): def get_queryset(self): """Override get_queryset.""" return super(CollectionHomePageView, self).get_queryset() \ - .filter_all_related_gt(3) + .filter_all_related_gt(3) class CollectionDetailView(CollectionViewMixin, generics.RetrieveAPIView):