diff --git a/core/common/mixins.py b/core/common/mixins.py index c6d5147c..7df0f812 100644 --- a/core/common/mixins.py +++ b/core/common/mixins.py @@ -153,7 +153,7 @@ def head(self, request, **kwargs): # pylint: disable=unused-argument res['num_found'] = get(self, 'total_count') or queryset.count() return res - def list(self, request, *args, **kwargs): # pylint:disable=too-many-locals + def list(self, request, *args, **kwargs): # pylint:disable=too-many-locals,too-many-branches query_params = request.query_params.dict() is_csv = query_params.get('csv', False) search_string = query_params.get('type', None)