mirror of
https://github.com/HamzaSha1/zod-backend.git
synced 2025-07-16 18:36:18 +00:00
19 lines
431 B
Python
19 lines
431 B
Python
"""
|
|
web_admin pagination file
|
|
"""
|
|
# third party imports
|
|
from rest_framework.pagination import PageNumberPagination
|
|
|
|
from base.constants import NUMBER
|
|
|
|
|
|
class CustomPageNumberPagination(PageNumberPagination):
|
|
"""
|
|
custom paginator class
|
|
"""
|
|
# Set the desired page size
|
|
page_size = NUMBER['ten']
|
|
page_size_query_param = 'page_size'
|
|
# Set a maximum page size if needed
|
|
max_page_size = NUMBER['hundred']
|