          if paginator.num_pages > 1 and self.template is not None:
              # The browsable API should display pagination controls.
              self.display_page_controls = True
  
          self.request = request
          return list(self.page)
  
      def get_page_number(self, request, paginator):
          page_number = request.query_params.get(self.page_query_param, 1)
          if page_number in self.last_page_strings:
 
</s> remove         self.request = request
 </s> add 
          if paginator.num_pages > 1 and self.template is not None:
              # The browsable API should display pagination controls.
              self.display_page_controls = True
  

          return list(self.page)
  
      def get_page_number(self, request, paginator):
          page_number = request.query_params.get(self.page_query_param, 1)
          if page_number in self.last_page_strings:
keep keep keep keep replace 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