api.v1.pagination module¶
Module with the extended custom Pagination class.
- class api.v1.pagination.Pagination[source]¶
Bases:
PageNumberPaginationExtended pagination for the API.
- page_size = 20¶
The number of results per page. Set from
constance.get_config('API_DEFAULT_PAGE_SIZE').Note
Has to be set here and not in the apisettings to be apply changes directly.
- page_size_query_param = 'page_size'¶
The query parameter for the page size.
- max_page_size = 200¶
The maximal number of results per page. Set from
constance.get_config('API_MAX_PAGE_SIZE').