mirror of
https://github.com/django/django.git
synced 2025-10-29 08:36:09 +00:00
Fixed #15575 -- Corrected handling of pagination in generic views to match documentation and historical behavior. Thanks to Ivan Virabyan for the report and patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15820 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -47,7 +47,7 @@ class MultipleObjectMixin(object):
|
||||
raise Http404(_(u"Page is not 'last', nor can it be converted to an int."))
|
||||
try:
|
||||
page = paginator.page(page_number)
|
||||
return (paginator, page, page.object_list, True)
|
||||
return (paginator, page, page.object_list, page.has_other_pages())
|
||||
except InvalidPage:
|
||||
raise Http404(_(u'Invalid page (%(page_number)s)') % {
|
||||
'page_number': page_number
|
||||
|
||||
Reference in New Issue
Block a user