          context = Context(self.get_html_context())
          return template.render(context)
  
  
  class CursorPagination(BasePagination):
      """
      The cursor pagination implementation is neccessarily complex.
      For an overview of the position/offset style we use, see this post:
      http://cramer.io/2011/03/08/building-cursors-for-the-disqus-api/
      """
 
</s> remove         if self.page_size is None:
 </s> add         self.page_size = self.get_page_size(request)
        if not self.page_size: </s> remove     page_size = api_settings.PAGE_SIZE
 </s> add 
class CursorPagination(BasePageSizePagination):
          context = Context(self.get_html_context())
          return template.render(context)
  
  
class CursorPagination(BasePageSizePagination):
      """
      The cursor pagination implementation is neccessarily complex.
      For an overview of the position/offset style we use, see this post:
      http://cramer.io/2011/03/08/building-cursors-for-the-disqus-api/
      """
keep keep keep keep replace keep keep keep keep keep
 use PageSizePaginationMixin for CursorPagination
tests for custom page_size in CursorPagination 
rest_framework/pagination.py