1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00

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

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)