Ticket #17159: ticket17159.diff
File ticket17159.diff, 576 bytes (added by , 13 years ago) |
---|
-
django/core/paginator.py
132 132 return self.has_previous() or self.has_next() 133 133 134 134 def next_page_number(self): 135 return self. number + 1135 return self.paginator.validate_number(self.number + 1) 136 136 137 137 def previous_page_number(self): 138 return self. number - 1138 return self.paginator.validate_number(self.number - 1) 139 139 140 140 def start_index(self): 141 141 """