Added forgotten import of EmptyPage.
authorStephen Burrows <stephen.r.burrows@gmail.com>
Mon, 9 Aug 2010 11:15:59 +0000 (07:15 -0400)
committerStephen Burrows <stephen.r.burrows@gmail.com>
Mon, 9 Aug 2010 11:43:29 +0000 (07:43 -0400)
contrib/penfield/utils.py

index e9415c0..89d01a7 100644 (file)
@@ -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):