revision collection view

This commit is contained in:
Anatoly 2019-12-17 17:17:39 +03:00
parent 8a7b583154
commit 5032906483

View File

@ -18,7 +18,7 @@ class CollectionViewMixin(generics.GenericAPIView):
"""Override get_queryset method.""" """Override get_queryset method."""
return models.Collection.objects.published() \ return models.Collection.objects.published() \
.by_country_code(code=self.request.country_code) \ .by_country_code(code=self.request.country_code) \
.order_by('-on_top', '-modified') .order_by('-on_top', '-created')
class GuideViewMixin(generics.GenericAPIView): class GuideViewMixin(generics.GenericAPIView):