summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorRussell Keith-Magee <russell@keith-magee.com>2011-03-15 08:24:31 +0000
committerRussell Keith-Magee <russell@keith-magee.com>2011-03-15 08:24:31 +0000
commit87a100b642316a5eb0db6299350208b6ed8f9248 (patch)
treedde27e6c6c1ef33a42b6d5e954adb1fece8a949e /django
parentc966566171a0480ea64774f7468c6d218b1088d5 (diff)
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
Diffstat (limited to 'django')
-rw-r--r--django/views/generic/list.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/views/generic/list.py b/django/views/generic/list.py
index c50c0554fb..56684573a3 100644
--- a/django/views/generic/list.py
+++ b/django/views/generic/list.py
@@ -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