mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
[4.2.x] Refs #34140 -- Applied rst code-block to non-Python examples.
Thanks to J.V. Zammit, Paolo Melchiorre, and Mariusz Felisiak for
reviews.
Backport of 534ac48297 from main.
This commit is contained in:
committed by
Mariusz Felisiak
parent
4a89aa25c9
commit
b784768eef
@@ -18,9 +18,11 @@ Multiple object mixins
|
||||
path('objects/page<int:page>/', PaginatedView.as_view()),
|
||||
|
||||
* Pass the page number via the ``page`` query-string parameter. For
|
||||
example, a URL would look like this::
|
||||
example, a URL would look like this:
|
||||
|
||||
/objects/?page=3
|
||||
.. code-block:: text
|
||||
|
||||
/objects/?page=3
|
||||
|
||||
These values and lists are 1-based, not 0-based, so the first page would be
|
||||
represented as page ``1``.
|
||||
@@ -29,7 +31,9 @@ Multiple object mixins
|
||||
</topics/pagination>`.
|
||||
|
||||
As a special case, you are also permitted to use ``last`` as a value for
|
||||
``page``::
|
||||
``page``:
|
||||
|
||||
.. code-block:: text
|
||||
|
||||
/objects/?page=last
|
||||
|
||||
|
||||
Reference in New Issue
Block a user