1
0
mirror of https://github.com/django/django.git synced 2025-07-04 17:59:13 +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:
Robert Wittams 2005-11-11 21:45:58 +00:00
parent 9b56eca28e
commit a7aeb4ed3c

View File

@ -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')