diff options
| author | Luke Plant <L.Plant.98@cantab.net> | 2010-11-20 20:38:52 +0000 |
|---|---|---|
| committer | Luke Plant <L.Plant.98@cantab.net> | 2010-11-20 20:38:52 +0000 |
| commit | d4c6abcbd10da9816a834883f3bfb05fb67222bc (patch) | |
| tree | 85989304b00d2a894f839ba526eeb370c65f7e67 /django/views | |
| parent | ece3a7c3c73f46171ef8c5f51e2b28784fe57fab (diff) | |
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
Diffstat (limited to 'django/views')
| -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(), |
