From: Stephen Burrows Date: Mon, 9 Aug 2010 11:15:59 +0000 (-0400) Subject: Added forgotten import of EmptyPage. X-Git-Tag: philo-0.9~40^2~2^2 X-Git-Url: http://git.ithinksw.org/philo.git/commitdiff_plain/772152c739f73fd355d7248f61d275408047662b?ds=inline;hp=15422e438784e42868c1d8ab142e4db902a5b72d Added forgotten import of EmptyPage. --- 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):