1
0
mirror of https://github.com/django/django.git synced 2025-07-04 09:49:12 +00:00

newforms-admin: Fixed #6921. list_per_page is now accessed from the correct object. Thanks, hambaloney.

git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@7383 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Joseph Kocherhans 2008-03-29 19:29:57 +00:00
parent 7822a0639f
commit e7e5fecbe0
2 changed files with 2 additions and 1 deletions

View File

@ -162,6 +162,7 @@ answer newbie questions, and generally made Django that much better:
Espen Grindhaug <http://grindhaug.org/>
Thomas Güttler <hv@tbz-pariv.de>
dAniel hAhler
hambaloney
Brian Harring <ferringb@gmail.com>
Brant Harris
Hawkeye

View File

@ -177,7 +177,7 @@ class ChangeList(object):
return mark_safe('?' + '&amp;'.join([u'%s=%s' % (k, v) for k, v in p.items()]).replace(' ', '%20'))
def get_results(self, request):
paginator = QuerySetPaginator(self.query_set, self.lookup_opts.admin.list_per_page)
paginator = QuerySetPaginator(self.query_set, self.list_per_page)
# Get the number of objects, with admin filters applied.
try: