1
0
mirror of https://github.com/django/django.git synced 2024-12-23 01:25:58 +00:00

Updated note about ListView pagination example in CBV docs.

Follow up to 0f0abc20be.
This commit is contained in:
Theofilos Alexiou 2022-04-19 21:38:49 +02:00 committed by GitHub
parent 7d26d5f8f1
commit 470708f50d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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``
=========================