From 470708f50d8c13a50770893b8d7181f5218bf3ac Mon Sep 17 00:00:00 2001 From: Theofilos Alexiou <2019342a@users.noreply.github.com> Date: Tue, 19 Apr 2022 21:38:49 +0200 Subject: [PATCH] Updated note about ListView pagination example in CBV docs. Follow up to 0f0abc20be55d796ecfc3e7698e7ecfd9e9cdf88. --- docs/ref/class-based-views/generic-display.txt | 3 +-- 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. If you're using pagination, you can adapt the :ref:`example template from - the pagination docs `. Change instances of - ``contacts`` in that example template to ``page_obj``. + the pagination docs `. .. 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`` =========================