diff --git a/gemini/settings.py b/gemini/settings.py index ad4e6f5..9747cb3 100644 --- a/gemini/settings.py +++ b/gemini/settings.py @@ -126,6 +126,11 @@ TMP_DIR = CF.TMP_DIR TEST_TMP_DIR = CF.TEST_TMP_DIR +REST_FRAMEWORK = { + 'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.PageNumberPagination', + 'PAGE_SIZE': 25, +} + structlog.configure( processors=[ structlog.stdlib.add_logger_name, diff --git a/storer/views.py b/storer/views.py index c2d0191..c85a335 100644 --- a/storer/views.py +++ b/storer/views.py @@ -32,7 +32,7 @@ class PackageViewSet(ModelViewSet): """ model = Package serializer_class = PackageSerializer - queryset = Package.objects.all() + queryset = Package.objects.all().order_by('-last_modified') def get_serializer_class(self): if self.action == 'list':