Ticket #15653: 15653.diff

File 15653.diff, 692 bytes (added by Adam Zapletal, 14 years ago)
  • django/contrib/admin/templatetags/admin_list.py

     
    5454            # ON_EACH_SIDE links at either end of the "current page" link.
    5555            page_range = []
    5656            if page_num > (ON_EACH_SIDE + ON_ENDS):
    57                 page_range.extend(range(0, ON_EACH_SIDE - 1))
     57                page_range.extend(range(0, ON_ENDS))
    5858                page_range.append(DOT)
    5959                page_range.extend(range(page_num - ON_EACH_SIDE, page_num + 1))
    6060            else:
Back to Top