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'