summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorLuke Plant <L.Plant.98@cantab.net>2010-11-20 20:38:52 +0000
committerLuke Plant <L.Plant.98@cantab.net>2010-11-20 20:38:52 +0000
commitd4c6abcbd10da9816a834883f3bfb05fb67222bc (patch)
tree85989304b00d2a894f839ba526eeb370c65f7e67 /docs
parentece3a7c3c73f46171ef8c5f51e2b28784fe57fab (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 'docs')
-rw-r--r--docs/topics/generic-views-migration.txt20
1 files changed, 20 insertions, 0 deletions
diff --git a/docs/topics/generic-views-migration.txt b/docs/topics/generic-views-migration.txt
index 3ac4204413..407ef24e49 100644
--- a/docs/topics/generic-views-migration.txt
+++ b/docs/topics/generic-views-migration.txt
@@ -74,6 +74,26 @@ was appended with the suffix ``'_list'`` to yield the final context
variable name. In a class-based ``ListView``, the
``context_object_name`` is used verbatim.
+The context data for ``object_list`` views
+------------------------------------------
+
+The context provided by :class:`~django.views.generic.list.MultipleObjectMixin`
+is quite different from that provided by ``object_list``, with most pagination
+related variables replaced by a single ``page_obj`` object. The following are no
+longer provided:
+
+* ``first_on_page``
+* ``has_next``
+* ``has_previous``
+* ``hits``
+* ``last_on_page``
+* ``next``
+* ``page_range``
+* ``page``
+* ``pages``
+* ``previous``
+* ``results_per_page``
+
``extra_context``
-----------------