From 1f748d09ced0d88b1efe944d523507035b464c44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Tue, 7 Jul 2020 21:07:05 +0800 Subject: [PATCH] Fixed the documentation in Pagination. --- mia_core/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mia_core/utils.py b/mia_core/utils.py index 20e4e0f..73a22ca 100644 --- a/mia_core/utils.py +++ b/mia_core/utils.py @@ -134,7 +134,7 @@ class Pagination: """The pagination. Args: - count (int): The total number of records + records (list[Model]): All the records page_no (int): The specified page number page_size (int): The specified number of records per page is_reverse (bool): Whether we should display the last @@ -147,7 +147,7 @@ class Pagination: Attributes: page_no (int): The current page number page_size (int): The page size - records (Model): The records in the current page + records (list[Model]): The records in the current page """ page_no = None page_size = None