docs: def get_paginate_by_param(self):
          """
          Returns the ``paginate_by_param`` for the (root) view paginator class.
          This is needed in order to remove the query parameter from faceted
          narrow urls.
  
          If using a custom pagination class, this class attribute needs to
          be set manually.
          """
          if hasattr(self.root, "paginate_by_param") and self.root.paginate_by_param:
              return self.root.paginate_by_param
  
          pagination_class = self.context["view"].pagination_class
          if not pagination_class:
              return None
  
          # PageNumberPagination
          if hasattr(pagination_class, "page_query_param"):
              return pagination_class.page_query_param
  
          # LimitOffsetPagination
          elif hasattr(pagination_class, "offset_query_param"):
              return pagination_class.offset_query_param
  
          # CursorPagination
          elif hasattr(pagination_class, "cursor_query_param"):
              return pagination_class.cursor_query_param
  
          else:
              raise AttributeError(
                  "%(root_cls)s is missing a `paginate_by_param` attribute. "
                  "Define a %(root_cls)s.paginate_by_param or override "
                  "%(cls)s.get_paginate_by_param()." % {
                      "root_cls": self.root.__class__.__name__,
                      "cls": self.__class__.__name__
                  })