X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/21a48bb02fe203cb57dbaf26e4ec6d9265b01e38..fdc181dfc7a0d4021bf0509bcba680acf9c98c36:/utils.py?ds=sidebyside diff --git a/utils.py b/utils.py index 11f9848..efd9f98 100644 --- a/utils.py +++ b/utils.py @@ -99,5 +99,7 @@ def paginate(objects, per_page=None, page_number=1): page = paginator.page(page_number) except EmptyPage: page = None + else: + objects = page.object_list return paginator, page, objects