Commit d43861b5 authored by carlosribas's avatar carlosribas
Browse files

Set page_size_query_param

parent b674a0ee
......@@ -18,6 +18,7 @@ class CustomPaginatorClass(Paginator):
class LargeTablePagination(PageNumberPagination):
"""Use this paginator class to avoid large table count query"""
django_paginator_class = CustomPaginatorClass
page_size_query_param = 'page_size'
def get_paginated_response(self, data):
return Response({
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment