diff options
Diffstat (limited to 'django')
| -rw-r--r-- | django/views/generic/list_detail.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/views/generic/list_detail.py b/django/views/generic/list_detail.py index b876098a97..58bc0082f9 100644 --- a/django/views/generic/list_detail.py +++ b/django/views/generic/list_detail.py @@ -71,10 +71,10 @@ def object_list(request, queryset, paginate_by=None, page=None, '%s_list' % template_object_name: page_obj.object_list, 'paginator': paginator, 'page_obj': page_obj, + 'is_paginated': page_obj.has_other_pages(), # Legacy template context stuff. New templates should use page_obj # to access this instead. - 'is_paginated': page_obj.has_other_pages(), 'results_per_page': paginator.per_page, 'has_next': page_obj.has_next(), 'has_previous': page_obj.has_previous(), |
