  class BasePagination(object):
      def paginate_queryset(self, queryset, request):
          raise NotImplemented('paginate_queryset() must be implemented.')
  
      def get_paginated_response(self, data, page, request):
          raise NotImplemented('get_paginated_response() must be implemented.')
  
  
  class PageNumberPagination(BasePagination):
      """
 
</s> remove     def paginate_queryset(self, queryset, request):
 </s> add     def paginate_queryset(self, queryset, request, view): </s> remove             ('results', objects)
 </s> add             ('results', data) </s> remove             ('results', objects)
 </s> add             ('results', data) </s> remove         self.count = queryset.count()
 </s> add         self.count = _get_count(queryset)
    def get_paginated_response(self, data):
  class BasePagination(object):
      def paginate_queryset(self, queryset, request):
          raise NotImplemented('paginate_queryset() must be implemented.')
  
    def get_paginated_response(self, data):
          raise NotImplemented('get_paginated_response() must be implemented.')
  
  
  class PageNumberPagination(BasePagination):
      """
keep keep keep keep replace keep keep keep keep keep
 API tweaks and pagination documentation 
rest_framework/pagination.py