[4.0.x] Doc'd a precise exception type in Paginator.page() docs.

Backport of 30d8932753 from main
This commit is contained in:
Sih Sîng-hông薛丞宏 2021-10-12 16:56:30 +08:00 committed by Mariusz Felisiak
parent e8d8ee4a48
commit 3e27ac131e
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
: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.
.. method:: Paginator.get_elided_page_range(number, *, on_each_side=3, on_ends=2)