mirror of
https://github.com/django/django.git
synced 2025-06-05 11:39:13 +00:00
Updated note about ListView pagination example in CBV docs.
Follow up to 0f0abc20be55d796ecfc3e7698e7ecfd9e9cdf88.
This commit is contained in:
parent
7d26d5f8f1
commit
470708f50d
@ -167,8 +167,7 @@ many projects they are typically the most commonly used views.
|
|||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
If you're using pagination, you can adapt the :ref:`example template from
|
If you're using pagination, you can adapt the :ref:`example template from
|
||||||
the pagination docs <using-paginator-in-view>`. Change instances of
|
the pagination docs <paginating-a-list-view>`.
|
||||||
``contacts`` in that example template to ``page_obj``.
|
|
||||||
|
|
||||||
.. class:: django.views.generic.list.BaseListView
|
.. 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()``
|
objects such as Django's ``QuerySet`` to use a more efficient ``count()``
|
||||||
method when available.
|
method when available.
|
||||||
|
|
||||||
|
.. _paginating-a-list-view:
|
||||||
|
|
||||||
Paginating a ``ListView``
|
Paginating a ``ListView``
|
||||||
=========================
|
=========================
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user