Ticket #15575: is_paginated.diff
File is_paginated.diff, 675 bytes (added by , 14 years ago) |
---|
-
django/views/generic/list.py
47 47 raise Http404(_(u"Page is not 'last', nor can it be converted to an int.")) 48 48 try: 49 49 page = paginator.page(page_number) 50 return (paginator, page, page.object_list, True)50 return (paginator, page, page.object_list, paginator.num_pages > 1) 51 51 except InvalidPage: 52 52 raise Http404(_(u'Invalid page (%(page_number)s)') % { 53 53 'page_number': page_number