Ticket #6997: paginator.diff

File paginator.diff, 517 bytes (added by siudesign, 16 years ago)
  • django/core/paginator.py

     
    4747            if hits < 1:
    4848                hits = 0
    4949            if hits == 0 and not self.allow_empty_first_page:
    50                 self._num_pages = 0
     50                self._num_pages = self.count
    5151            else:
    5252                self._num_pages = hits // self.per_page + 1
    5353        return self._num_pages
Back to Top