title: Override page_size & ordering of CursorPagination in Django Rest Framework
body: <p>I using CursorPagination of Django Rest Framework, I want to override default <code>page_size(10)</code> and <code>ordering('timestamp')</code> in a single viewset. How can I do this?</p>
  
  <p>I tried with my viewset but it's not success:</p>
  
  <pre><code>from rest_framework.pagination import CursorPagination
  class ListAPIView(ListAPIView):
      queryset = Cake.objects.all()
      permission_classes = [AllowAny]
      serializer_class = ListSerializer
      pagination_class = CursorPagination
      filter_backends = (OrderingFilter, DjangoFilterBackend)
      filter_class = CakeListFilter
      filterset_fields = ('cake_type', 'user__username')
      ordering = '-date'
      page_size = 5
  </code></pre>