Fix a bug (temporary) with transaction pagination

parent fbdc6251
Pipeline #6434 failed with stage
in 33 seconds
......@@ -38,9 +38,8 @@ class TransactionFilterBackend(filters.BaseFilterBackend):
if page != 0:
page_size = int(request.query_params.get('page_size', 10))
queryset = queryset[(page - 1) * page_size: page * page_size]
return queryset
return Response("Please parametrize your request.", 400)
# TODO: raise exceptions.ValidationError("Please paginate your request.")
return queryset
class TransactionViewSet(viewsets.ModelViewSet):
......
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