From b1738f189baacd865a1e0e0bb789cf03d81665b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Kervella?= Date: Thu, 26 Apr 2018 18:41:13 +0000 Subject: [PATCH] Add pagination to API results --- api/settings.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/api/settings.py b/api/settings.py index 028ec01d..6bf48e33 100644 --- a/api/settings.py +++ b/api/settings.py @@ -34,7 +34,9 @@ REST_FRAMEWORK = { ), 'DEFAULT_PERMISSION_CLASSES': ( 'api.permissions.DefaultACLPermission', - ) + ), + 'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.PageNumberPagination', + 'PAGE_SIZE': 100 } # API permission settings