From da5340a2528d8619653b872cc77d5ce0917b274c Mon Sep 17 00:00:00 2001 From: Dylan Hillerbrand Date: Wed, 5 Jul 2023 16:19:51 -0400 Subject: [PATCH] Add pagination to API endpoint templates --- app/public/cantusdata/settings.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/public/cantusdata/settings.py b/app/public/cantusdata/settings.py index 54c0a30e..f386bc48 100644 --- a/app/public/cantusdata/settings.py +++ b/app/public/cantusdata/settings.py @@ -178,3 +178,8 @@ CELERY_RESULT_EXTENDED = True CELERY_APP = "cantusdata" CELERY_TASK_TRACK_STARTED = True + +REST_FRAMEWORK = { + "DEFAULT_PAGINATION_CLASS": "rest_framework.pagination.LimitOffsetPagination", + "PAGE_SIZE": 50, +}