summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2013-05-29 09:23:08 -0400
committerTim Graham <timograham@gmail.com>2013-05-29 09:23:08 -0400
commit5939864616d56cf949f0bca348a8e05230b62fe0 (patch)
tree45de64482ad689a379103a25ca8003e4b04841a2 /django
parent7426e72302db9c8c78235afc5c335a437a7ad760 (diff)
Fixed #15653 - Error in admin pagination tag.
Thanks jcumbo@ for the report and adamzap and nott for the patch.
Diffstat (limited to 'django')
-rw-r--r--django/contrib/admin/templatetags/admin_list.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/admin/templatetags/admin_list.py b/django/contrib/admin/templatetags/admin_list.py
index 18a45a006f..965352e0f5 100644
--- a/django/contrib/admin/templatetags/admin_list.py
+++ b/django/contrib/admin/templatetags/admin_list.py
@@ -62,7 +62,7 @@ def pagination(cl):
# ON_EACH_SIDE links at either end of the "current page" link.
page_range = []
if page_num > (ON_EACH_SIDE + ON_ENDS):
- page_range.extend(range(0, ON_EACH_SIDE - 1))
+ page_range.extend(range(0, ON_ENDS))
page_range.append(DOT)
page_range.extend(range(page_num - ON_EACH_SIDE, page_num + 1))
else: