Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

newforms-admin: Fixed #6921. list_per_page is now accessed from the c…

…orrect object. Thanks, hambaloney.

git-svn-id: http://code.djangoproject.com/svn/django/branches/newforms-admin@7383 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit e7e5fecbe0908ef70196b0a77848ae492d4c01f0 1 parent 7822a06
@jkocherhans jkocherhans authored
Showing with 2 additions and 1 deletion.
  1. +1 −0  AUTHORS
  2. +1 −1  django/contrib/admin/views/main.py
View
1  AUTHORS
@@ -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
2  django/contrib/admin/views/main.py
@@ -177,7 +177,7 @@ def get_query_string(self, new_params=None, remove=None):
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:
Please sign in to comment.
Something went wrong with that request. Please try again.