  
      def paginate_queryset(self, queryset, request, view=None):
          self.page_size = self.get_page_size(request)
          if not self.page_size:
              return None
  
          self.base_url = request.build_absolute_uri()
 
</s> remove         self.request = request
 </s> add  </s> remove         self.request = request
 </s> add 
        self.request = request
  
      def paginate_queryset(self, queryset, request, view=None):
        self.request = request
          self.page_size = self.get_page_size(request)
          if not self.page_size:
              return None
  
          self.base_url = request.build_absolute_uri()
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