website/website/api/pagination.py

6 lines
159 B
Python

from rest_framework.pagination import PageNumberPagination
class CustomPageNumberPagination(PageNumberPagination):
page_size = 20
max_page_size = 50