add - first step of update page access / fix pagination page size from 100 to 1000

This commit is contained in:
2025-11-30 09:03:22 +03:30
parent d74c28ed50
commit 0de6e7cb40
3 changed files with 20 additions and 3 deletions

View File

@@ -5,7 +5,7 @@ from rest_framework.response import Response
class CustomPageNumberPagination(PageNumberPagination):
page_size = 5 # default
page_size_query_param = 'page_size' # set from client
max_page_size = 100 # maximum items to show
max_page_size = 1000 # maximum items to show
message = None
def get_paginated_response(self, data):