From 2d5596d1f718644a2fdfe41910657b662eadf257 Mon Sep 17 00:00:00 2001 From: Leandro Roberto Date: Tue, 17 Nov 2020 21:23:19 -0300 Subject: [PATCH] HOT-FIX: permite get_all com True ou true --- sapl/api/pagination.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sapl/api/pagination.py b/sapl/api/pagination.py index 3c77a7ee3..d205df3c5 100644 --- a/sapl/api/pagination.py +++ b/sapl/api/pagination.py @@ -9,7 +9,7 @@ class StandardPagination(pagination.PageNumberPagination): max_page_size = 50 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 super().paginate_queryset(queryset, request, view=view)