csv excel export api

This commit is contained in:
abutalib-kiwi
2023-08-16 17:15:12 +05:30
parent 4bc16c56bd
commit 043c8c2f63
4 changed files with 48 additions and 96 deletions

View File

@ -1,13 +1,18 @@
"""
web_admin pagination file
"""
# third party imports
from rest_framework.pagination import PageNumberPagination
from base.constants import NUMBER
class CustomPageNumberPagination(PageNumberPagination):
"""
custom paginator class
"""
page_size = 10 # Set the desired page size
# Set the desired page size
page_size = NUMBER['ten']
page_size_query_param = 'page_size'
max_page_size = 100 # Set a maximum page size if needed
# Set a maximum page size if needed
max_page_size = NUMBER['hundred']