  
      def paginate_queryset(self, queryset, request, view):
          self.limit = self.get_limit(request)
          self.offset = self.get_offset(request)
          self.count = queryset.count()
          self.request = request
          return queryset[self.offset:self.offset + self.limit]
  
      def get_paginated_response(self, objects):
          return Response(OrderedDict([
 
</s> remove     def get_paginated_response(self, objects):
 </s> add     def get_paginated_response(self, data): </s> remove     def get_paginated_response(self, objects):
 </s> add     def get_paginated_response(self, data): </s> remove     def paginate_queryset(self, queryset, request):
 </s> add     def paginate_queryset(self, queryset, request, view): </s> remove             return None
 </s> add             return queryset
        self.count = _get_count(queryset)
  
      def paginate_queryset(self, queryset, request, view):
          self.limit = self.get_limit(request)
          self.offset = self.get_offset(request)
        self.count = _get_count(queryset)
          self.request = request
          return queryset[self.offset:self.offset + self.limit]
  
      def get_paginated_response(self, objects):
          return Response(OrderedDict([
keep keep keep keep replace keep keep keep keep keep
 API tweaks and pagination documentation 
rest_framework/pagination.py