Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Joseph Kocherhans authored
1  AUTHORS
@@ -162,6 +162,7 @@ answer newbie questions, and generally made Django that much better:
162 162
     Espen Grindhaug <http://grindhaug.org/>
163 163
     Thomas Güttler <hv@tbz-pariv.de>
164 164
     dAniel hAhler
  165
+    hambaloney
165 166
     Brian Harring <ferringb@gmail.com>
166 167
     Brant Harris
167 168
     Hawkeye
2  django/contrib/admin/views/main.py
@@ -177,7 +177,7 @@ def get_query_string(self, new_params=None, remove=None):
177 177
         return mark_safe('?' + '&amp;'.join([u'%s=%s' % (k, v) for k, v in p.items()]).replace(' ', '%20'))
178 178
 
179 179
     def get_results(self, request):
180  
-        paginator = QuerySetPaginator(self.query_set, self.lookup_opts.admin.list_per_page)
  180
+        paginator = QuerySetPaginator(self.query_set, self.list_per_page)
181 181
 
182 182
         # Get the number of objects, with admin filters applied.
183 183
         try:

0 notes on commit e7e5fec

Please sign in to comment.
Something went wrong with that request. Please try again.