      max_limit = None
      template = 'rest_framework/pagination/numbers.html'
  
      def paginate_queryset(self, queryset, request, view=None):
          self.limit = self.get_limit(request)
          if self.limit is None:
              return None
  
          self.count = self.get_count(queryset)
 
</s> remove         self.request = request
 </s> add  </s> remove         self.request = request
 </s> add 
        self.request = request
      max_limit = None
      template = 'rest_framework/pagination/numbers.html'
  
      def paginate_queryset(self, queryset, request, view=None):
        self.request = request
          self.limit = self.get_limit(request)
          if self.limit is None:
              return None
  
          self.count = self.get_count(queryset)
keep keep keep add keep keep keep keep keep
 Make request consistently available in pagination classes (#8764)

* Store request in CursorPagination field

* Define request at start of pagination entrypoint 
rest_framework/pagination.py