Browse Source

HOT-FIX: permite get_all com True ou true

pull/3304/head
Leandro Roberto 4 years ago
parent
commit
2d5596d1f7
  1. 2
      sapl/api/pagination.py

2
sapl/api/pagination.py

@ -9,7 +9,7 @@ class StandardPagination(pagination.PageNumberPagination):
max_page_size = 50 max_page_size = 50
def paginate_queryset(self, queryset, request, view=None): def paginate_queryset(self, queryset, request, view=None):
if request.query_params.get('get_all', False) == 'true': if request.query_params.get('get_all', '').lower() == 'true':
return None return None
return super().paginate_queryset(queryset, request, view=view) return super().paginate_queryset(queryset, request, view=view)

Loading…
Cancel
Save