diff options
author | Theofilos Alexiou <2019342a@users.noreply.github.com> | 2022-04-19 21:38:49 +0200 |
---|---|---|
committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2022-04-19 21:39:41 +0200 |
commit | f33c636372f7092e12ff2780506054128e347490 (patch) | |
tree | bf910cd7f740d73ea6b5154cbca2a5dd20e5ae97 | |
parent | 2fc7cb9d395a5e90e25c41482c77b255a9f9d4dc (diff) | |
download | django-f33c636372f7092e12ff2780506054128e347490.tar.gz |
[4.0.x] Updated note about ListView pagination example in CBV docs.
Follow up to 0f0abc20be55d796ecfc3e7698e7ecfd9e9cdf88.
Backport of 470708f50d8c13a50770893b8d7181f5218bf3ac from main
-rw-r--r-- | docs/ref/class-based-views/generic-display.txt | 3 | ||||
-rw-r--r-- | docs/topics/pagination.txt | 2 |
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`` ========================= |