Ticket #15653: 15653.diff
File 15653.diff, 692 bytes (added by , 14 years ago) |
---|
-
django/contrib/admin/templatetags/admin_list.py
54 54 # ON_EACH_SIDE links at either end of the "current page" link. 55 55 page_range = [] 56 56 if page_num > (ON_EACH_SIDE + ON_ENDS): 57 page_range.extend(range(0, ON_E ACH_SIDE - 1))57 page_range.extend(range(0, ON_ENDS)) 58 58 page_range.append(DOT) 59 59 page_range.extend(range(page_num - ON_EACH_SIDE, page_num + 1)) 60 60 else: