Ticket #6997: paginator.diff
File paginator.diff, 517 bytes (added by , 17 years ago) |
---|
-
django/core/paginator.py
47 47 if hits < 1: 48 48 hits = 0 49 49 if hits == 0 and not self.allow_empty_first_page: 50 self._num_pages = 050 self._num_pages = self.count 51 51 else: 52 52 self._num_pages = hits // self.per_page + 1 53 53 return self._num_pages