mirror of
https://github.com/django/django.git
synced 2025-07-04 01:39:20 +00:00
Pagination fix. Thanks bitprophet.
git-svn-id: http://code.djangoproject.com/svn/django/branches/new-admin@1181 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
9b56eca28e
commit
a7aeb4ed3c
@ -63,7 +63,7 @@ def paginator_number(cl,i):
|
||||
elif i == cl.page_num:
|
||||
return '<span class="this-page">%d</span> ' % (i+1)
|
||||
else:
|
||||
return '<a href="%s"%s>%d</a> ' % (cl.get_query_string( {PAGE_VAR: i}), (i == paginator.pages-1 and ' class="end"' or ''), i+1)
|
||||
return '<a href="%s"%s>%d</a> ' % (cl.get_query_string( {PAGE_VAR: i}), (i == cl.paginator.pages-1 and ' class="end"' or ''), i+1)
|
||||
paginator_number = simple_tag(paginator_number)
|
||||
|
||||
#@inclusion_tag('admin/pagination')
|
||||
|
Loading…
x
Reference in New Issue
Block a user