From 3053f6fd7a11c8b1e0a87f35696ec17b84e8cd1f Mon Sep 17 00:00:00 2001 From: DJ Gillespie Date: Wed, 17 May 2023 12:31:45 -0600 Subject: [PATCH] fixed pagination --- core/paginators.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 core/paginators.py diff --git a/core/paginators.py b/core/paginators.py new file mode 100644 index 0000000..a9fa02c --- /dev/null +++ b/core/paginators.py @@ -0,0 +1,6 @@ +from rest_framework.pagination import PageNumberPagination + + +class UserDefinedSizePagination(PageNumberPagination): + page_query_param = 'page_size' + max_page_size = '500'