      def to_html(self):  # pragma: no cover
          raise NotImplementedError('to_html() must be implemented to display page controls.')
  
  
  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):
      """
      A simple page number based style that supports page numbers as
      query parameters. For example:
  
      http://api.example.org/accounts/?page=4
 
</s> remove class CursorPagination(BasePageSizePagination):
 </s> add class CursorPagination(BasePagination): </s> remove         self.page_size = self.get_page_size(request)
        if not self.page_size:
 </s> add         if self.page_size is None:
class PageNumberPagination(BasePagination):
      def to_html(self):  # pragma: no cover
          raise NotImplementedError('to_html() must be implemented to display page controls.')
  
  
class PageNumberPagination(BasePagination):
class PageNumberPagination(BasePagination):
class PageNumberPagination(BasePagination):
class PageNumberPagination(BasePagination):
class PageNumberPagination(BasePagination):
class PageNumberPagination(BasePagination):
class PageNumberPagination(BasePagination):
class PageNumberPagination(BasePagination):
class PageNumberPagination(BasePagination):
class PageNumberPagination(BasePagination):
class PageNumberPagination(BasePagination):
class PageNumberPagination(BasePagination):
class PageNumberPagination(BasePagination):
class PageNumberPagination(BasePagination):
class PageNumberPagination(BasePagination):
class PageNumberPagination(BasePagination):
class PageNumberPagination(BasePagination):
class PageNumberPagination(BasePagination):
class PageNumberPagination(BasePagination):
class PageNumberPagination(BasePagination):
class PageNumberPagination(BasePagination):
class PageNumberPagination(BasePagination):
class PageNumberPagination(BasePagination):
class PageNumberPagination(BasePagination):
class PageNumberPagination(BasePagination):
class PageNumberPagination(BasePagination):
class PageNumberPagination(BasePagination):
class PageNumberPagination(BasePagination):
      """
      A simple page number based style that supports page numbers as
      query parameters. For example:
  
      http://api.example.org/accounts/?page=4
keep keep keep keep replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace keep keep keep keep keep
 revert BasePageSizePagination class and CursorPagination inheritance 
rest_framework/pagination.py