From 2895c926156d55c010cd1318ca71afc899bcf7ac Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 20 Apr 2021 17:27:57 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Enforce=20pagination=20by=20100?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/sophon/settings.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend/sophon/settings.py b/backend/sophon/settings.py index 959c95f..2545228 100644 --- a/backend/sophon/settings.py +++ b/backend/sophon/settings.py @@ -144,7 +144,9 @@ REST_FRAMEWORK = { # or allow read-only access for unauthenticated users. 'DEFAULT_PERMISSION_CLASSES': [ 'rest_framework.permissions.DjangoModelPermissionsOrAnonReadOnly' - ] + ], + 'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.LimitOffsetPagination', + 'PAGE_SIZE': 100, } # Logging