From 772152c739f73fd355d7248f61d275408047662b Mon Sep 17 00:00:00 2001 From: Stephen Burrows Date: Mon, 9 Aug 2010 07:15:59 -0400 Subject: [PATCH] Added forgotten import of EmptyPage. --- contrib/penfield/utils.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/contrib/penfield/utils.py b/contrib/penfield/utils.py index e9415c0..89d01a7 100644 --- a/contrib/penfield/utils.py +++ b/contrib/penfield/utils.py @@ -1,4 +1,4 @@ -from django.core.paginator import Paginator +from django.core.paginator import Paginator, EmptyPage class PaginationProxy(object): @@ -28,8 +28,9 @@ class PaginationProxy(object): return self.page.number - def __bool__(self): - return bool(self.paginator) + # Why doesn't this work? + #def __bool__(self): + # return bool(self.paginator) def paginate(objects, per_page=None, page_number=1): -- 2.20.1