return self.get_paginated_response(serializer.data)
serializer = self.get_serializer(queryset, many=True)
return Response(serializer.data)
Django Rest Framework: turn on pagination on a ViewSet (like ModelViewSet pagination)