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:
parent
7d26d5f8f1
commit
470708f50d
@ -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
|
||||
|
||||
|
@ -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``
|
||||
=========================
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user