          ret = min(ret, cutoff)
      return ret
  
  
  class BasePagination(object):
      def paginate_queryset(self, queryset, request, view):
          raise NotImplemented('paginate_queryset() must be implemented.')
  
 
</s> remove     def paginate_queryset(self, queryset, request):
 </s> add     def paginate_queryset(self, queryset, request, view): </s> remove     def get_paginated_response(self, data, page, request):
 </s> add     def get_paginated_response(self, data): </s> remove         self.count = queryset.count()
 </s> add         self.count = _get_count(queryset) </s> remove             return None
 </s> add             return queryset </s> remove         Paginate a queryset if required, either returning a page object,
        or `None` if pagination is not configured for this view.
 </s> add         Paginate a queryset if required, either returning a
        page object, or `None` if pagination is not configured for this view.
def _get_count(queryset):
    """
    Determine an object count, supporting either querysets or regular lists.
    """
    try:
        return queryset.count()
    except AttributeError:
        return len(queryset)


          ret = min(ret, cutoff)
      return ret
  
  
def _get_count(queryset):
    """
    Determine an object count, supporting either querysets or regular lists.
    """
    try:
        return queryset.count()
    except AttributeError:
        return len(queryset)


  class BasePagination(object):
      def paginate_queryset(self, queryset, request, view):
          raise NotImplemented('paginate_queryset() must be implemented.')
  
keep keep keep add keep keep keep keep
 API tweaks and pagination documentation 
rest_framework/pagination.py