Doc'd a precise exception type in Paginator.page() docs.

This commit is contained in:
Sih Sîng-hông薛丞宏 2021-10-12 16:56:30 +08:00 committed by Mariusz Felisiak
parent 14c8504a37
commit 30d8932753
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ Methods
Returns a :class:`Page` object with the given 1-based index. Raises Returns a :class:`Page` object with the given 1-based index. Raises
:exc:`PageNotAnInteger` if the ``number`` cannot be converted to an integer :exc:`PageNotAnInteger` if the ``number`` cannot be converted to an integer
by calling ``int()``. Raises :exc:`InvalidPage` if the given page number by calling ``int()``. Raises :exc:`EmptyPage` if the given page number
doesn't exist. doesn't exist.
.. method:: Paginator.get_elided_page_range(number, *, on_each_side=3, on_ends=2) .. method:: Paginator.get_elided_page_range(number, *, on_each_side=3, on_ends=2)