From d4c6abcbd10da9816a834883f3bfb05fb67222bc Mon Sep 17 00:00:00 2001 From: Luke Plant Date: Sat, 20 Nov 2010 20:38:52 +0000 Subject: Documented migration path for change object_list -> ListView regarding different context variables git-svn-id: http://code.djangoproject.com/svn/django/trunk@14650 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/views/generic/list_detail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'django') 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(), -- cgit v1.3