git.ithinksw.org
/
philo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
15422e4
)
Added forgotten import of EmptyPage.
author
Stephen Burrows
<stephen.r.burrows@gmail.com>
Mon, 9 Aug 2010 11:15:59 +0000
(07:15 -0400)
committer
Stephen Burrows
<stephen.r.burrows@gmail.com>
Mon, 9 Aug 2010 11:43:29 +0000
(07:43 -0400)
contrib/penfield/utils.py
patch
|
blob
|
history
diff --git
a/contrib/penfield/utils.py
b/contrib/penfield/utils.py
index
e9415c0
..
89d01a7
100644
(file)
--- 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):