  
      # Client can control the page using this query parameter.
      page_query_param = 'page'
  
      last_page_strings = ('last',)
  
      template = 'rest_framework/pagination/numbers.html'
  
      invalid_page_message = _('Invalid page "{page_number}": {message}.')
 
</s> remove class BasePageSizePagination(BasePagination):
    # The default page size.
    # Defaults to `None`, meaning pagination is disabled.
    page_size = api_settings.PAGE_SIZE

    # Set to an integer to limit the maximum page size the client may request.
    # Only relevant if 'page_size_query_param' has also been set.
    max_page_size = None

    # Client can control the page size using this query parameter.
    # Default is 'None'. Set to eg 'page_size' to enable usage.
    page_size_query_param = None

    def get_page_size(self, request):
        if self.page_size_query_param:
            try:
                return _positive_int(
                    request.query_params[self.page_size_query_param],
                    strict=True,
                    cutoff=self.max_page_size
                )
            except (KeyError, ValueError):
                pass

        return self.page_size


class PageNumberPagination(BasePageSizePagination):
 </s> add class PageNumberPagination(BasePagination): </s> remove         self.page_size = self.get_page_size(request)
        if not self.page_size:
 </s> add         if self.page_size is None: </s> remove class CursorPagination(BasePageSizePagination):
 </s> add class CursorPagination(BasePagination):
    # Client can control the page size using this query parameter.
    # Default is 'None'. Set to eg 'page_size' to enable usage.
    page_size_query_param = None

    # Set to an integer to limit the maximum page size the client may request.
    # Only relevant if 'page_size_query_param' has also been set.
    max_page_size = None

  
      # Client can control the page using this query parameter.
      page_query_param = 'page'
  
    # Client can control the page size using this query parameter.
    # Default is 'None'. Set to eg 'page_size' to enable usage.
    page_size_query_param = None

    # Set to an integer to limit the maximum page size the client may request.
    # Only relevant if 'page_size_query_param' has also been set.
    max_page_size = None

      last_page_strings = ('last',)
  
      template = 'rest_framework/pagination/numbers.html'
  
      invalid_page_message = _('Invalid page "{page_number}": {message}.')
keep keep keep add keep keep keep keep keep
 revert BasePageSizePagination class and CursorPagination inheritance 
rest_framework/pagination.py