From 4537681bb53b80369c03365d740927b61128f3ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Thu, 2 Jul 2020 00:45:53 +0800 Subject: [PATCH] Added the documentation to the invalid page number in Pagination. --- accounting/utils.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/accounting/utils.py b/accounting/utils.py index 16fc838..d8dd5d5 100644 --- a/accounting/utils.py +++ b/accounting/utils.py @@ -61,6 +61,10 @@ class Pagination: page_size (int): The specified number of records per page is_reverse (bool): Whether we should display the last page first + + Raises: + PageNoOutOfRangeError: if the specified page number is out + of range or is redundant. """ self.page_size = page_size \ if page_size is not None \