summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorTheofilos Alexiou <2019342a@users.noreply.github.com>2022-04-19 21:38:49 +0200
committerGitHub <noreply@github.com>2022-04-19 21:38:49 +0200
commit470708f50d8c13a50770893b8d7181f5218bf3ac (patch)
tree2039cde40104a5e1d85db039fb9cbb6d82f4a89d /docs
parent7d26d5f8f17637a768f9d46e96547ae12e2418ae (diff)
Updated note about ListView pagination example in CBV docs.
Follow up to 0f0abc20be55d796ecfc3e7698e7ecfd9e9cdf88.
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/class-based-views/generic-display.txt3
-rw-r--r--docs/topics/pagination.txt2
2 files changed, 3 insertions, 2 deletions
diff --git a/docs/ref/class-based-views/generic-display.txt b/docs/ref/class-based-views/generic-display.txt
index 4bcca91bac..625a43fa0c 100644
--- a/docs/ref/class-based-views/generic-display.txt
+++ b/docs/ref/class-based-views/generic-display.txt
@@ -167,8 +167,7 @@ many projects they are typically the most commonly used views.
</ul>
If you're using pagination, you can adapt the :ref:`example template from
- the pagination docs <using-paginator-in-view>`. Change instances of
- ``contacts`` in that example template to ``page_obj``.
+ the pagination docs <paginating-a-list-view>`.
.. class:: django.views.generic.list.BaseListView
diff --git a/docs/topics/pagination.txt b/docs/topics/pagination.txt
index d82aa43a72..c91b1e8ba7 100644
--- a/docs/topics/pagination.txt
+++ b/docs/topics/pagination.txt
@@ -78,6 +78,8 @@ accessing the items for each page::
objects such as Django's ``QuerySet`` to use a more efficient ``count()``
method when available.
+.. _paginating-a-list-view:
+
Paginating a ``ListView``
=========================