Hi again,
For some reason pagination isn’t working in my ModelViewSet. In settings I have:
REST_FRAMEWORK = {
'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.PageNumberPagination',
'PAGE_SIZE': 25
}
and views.py
class StrikeViewSet(viewsets.ModelViewSet):
queryset = Strike.objects.all().order_by('player')
serializer_class = StrikeSerializer
permission_classes = [permissions.IsAuthenticated]
authentication_classes = [SessionAuthentication, BasicAuthentication]
I tried explicitly importing and assigning the class with pagination_class to no avail.