Commit 6b645403 authored by Gladys Forte's avatar Gladys Forte

page size set 100 branches viewset

parent 3ea7958c
...@@ -12,6 +12,8 @@ class BranchViewSet(viewsets.ModelViewSet): ...@@ -12,6 +12,8 @@ class BranchViewSet(viewsets.ModelViewSet):
serializer_class = BranchSerializer serializer_class = BranchSerializer
pagination_class = CustomPagination pagination_class = CustomPagination
lookup_field = 'id' lookup_field = 'id'
# pagination.PageNumberPagination.page_size = 100
pagination_class.page_size = 100
def list(self, request, *args, **kwargs): def list(self, request, *args, **kwargs):
......
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