fnp
/
django-pagination.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
a966b17
)
removed spaces... heh.
author
leahculver
<leah.culver@gmail.com>
Wed, 11 Feb 2009 21:02:02 +0000
(13:02 -0800)
committer
leahculver
<leah.culver@gmail.com>
Wed, 11 Feb 2009 21:02:02 +0000
(13:02 -0800)
pagination/paginator.py
patch
|
blob
|
history
diff --git
a/pagination/paginator.py
b/pagination/paginator.py
index
9a6ec83
..
56e0a31
100644
(file)
--- a/
pagination/paginator.py
+++ b/
pagination/paginator.py
@@
-5,10
+5,10
@@
class InfinitePaginator(Paginator):
Paginator designed for cases when it's not important to know how many total pages.
This is useful for any object_list that has no count() method or can be used to
improve performance for MySQL by removing counts.
Paginator designed for cases when it's not important to know how many total pages.
This is useful for any object_list that has no count() method or can be used to
improve performance for MySQL by removing counts.
-
+
The orphans parameter has been removed for simplicity and there's a link template string
for creating the links to the next and previous pages.
The orphans parameter has been removed for simplicity and there's a link template string
for creating the links to the next and previous pages.
-
+
Class name is pronounced verbally in a deep tone.
'''
Class name is pronounced verbally in a deep tone.
'''
@@
-81,7
+81,7
@@
class InfinitePage(Page):
relative to total objects found (hits).
"""
return (self.number - 1) * self.paginator.per_page + len(self.object_list)
relative to total objects found (hits).
"""
return (self.number - 1) * self.paginator.per_page + len(self.object_list)
-
+
'''Bonus methods for creating links'''
def next_link(self):
'''Bonus methods for creating links'''
def next_link(self):