      max_paginate_by = api_settings.MAX_PAGINATE_BY
  
      def paginate_queryset(self, queryset, request, view):
          """
          Paginate a queryset if required, either returning a page object,
          or `None` if pagination is not configured for this view.
          """
          for attr in (
              'paginate_by', 'page_query_param',
              'paginate_by_param', 'max_paginate_by'
          ):
 
</s> remove             return None
 </s> add             return queryset </s> remove     def get_paginated_response(self, data, page, request):
 </s> add     def get_paginated_response(self, data): </s> remove     def get_paginated_response(self, objects):
        return self.pager.get_paginated_response(objects)
 </s> add     def get_paginated_response(self, data):
        return self.pager.get_paginated_response(data) </s> remove     def paginate_queryset(self, queryset, request):
 </s> add     def paginate_queryset(self, queryset, request, view):
        Paginate a queryset if required, either returning a
        page object, or `None` if pagination is not configured for this view.
      max_paginate_by = api_settings.MAX_PAGINATE_BY
  
      def paginate_queryset(self, queryset, request, view):
          """
        Paginate a queryset if required, either returning a
        page object, or `None` if pagination is not configured for this view.
        Paginate a queryset if required, either returning a
        page object, or `None` if pagination is not configured for this view.
          """
          for attr in (
              'paginate_by', 'page_query_param',
              'paginate_by_param', 'max_paginate_by'
          ):
keep keep keep keep replace replace keep keep keep keep keep
 API tweaks and pagination documentation 
rest_framework/pagination.py