Code

Ticket #6921: r7378-contrib-admin-views-main.diff

File r7378-contrib-admin-views-main.diff, 556 bytes (added by hambaloney, 6 years ago)
Line 
1Index: main.py
2===================================================================
3--- main.py     (revision 7378)
4+++ main.py     (working copy)
5@@ -177,7 +177,7 @@
6         return mark_safe('?' + '&'.join([u'%s=%s' % (k, v) for k, v in p.items()]).replace(' ', '%20'))
7 
8     def get_results(self, request):
9-        paginator = QuerySetPaginator(self.query_set, self.lookup_opts.admin.list_per_page)
10+        paginator = QuerySetPaginator(self.query_set, self.list_per_page)
11 
12         # Get the number of objects, with admin filters applied.
13         try: