HimoolERP/apps/report/paginations.py
2020-09-27 18:43:01 +08:00

13 lines
312 B
Python

from rest_framework.pagination import PageNumberPagination
class PurchaseReportPagination(PageNumberPagination):
page_size = 20
page_query_param = 'page'
max_page_size = 20
class SalesReportPagination(PageNumberPagination):
page_size = 20
page_query_param = 'page'
max_page_size = 20