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.
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)