Ticket #17159: ticket17159.diff

File ticket17159.diff, 576 bytes (added by Apurva Mehta, 13 years ago)

Patch for the issue

  • django/core/paginator.py

     
    132132        return self.has_previous() or self.has_next()
    133133
    134134    def next_page_number(self):
    135         return self.number + 1
     135        return self.paginator.validate_number(self.number + 1)
    136136
    137137    def previous_page_number(self):
    138         return self.number - 1
     138        return self.paginator.validate_number(self.number - 1)
    139139
    140140    def start_index(self):
    141141        """
Back to Top