Ticket #7670: ticket-7670.patch
File ticket-7670.patch, 1.2 KB (added by , 16 years ago) |
---|
-
views/generic/list_detail.py
45 45 if extra_context is None: extra_context = {} 46 46 queryset = queryset._clone() 47 47 if paginate_by: 48 paginator = QuerySetPaginator(queryset, paginate_by, allow_empty_first_page=allow_empty)48 paginator = Paginator(queryset, paginate_by, allow_empty_first_page=allow_empty) 49 49 if not page: 50 50 page = request.GET.get('page', 1) 51 51 try: -
contrib/admin/views/main.py
611 611 return mark_safe('?' + '&'.join([u'%s=%s' % (k, v) for k, v in p.items()]).replace(' ', '%20')) 612 612 613 613 def get_results(self, request): 614 paginator = QuerySetPaginator(self.query_set, self.lookup_opts.admin.list_per_page)614 paginator = Paginator(self.query_set, self.lookup_opts.admin.list_per_page) 615 615 616 616 # Get the number of objects, with admin filters applied. 617 617 try: