Fixed #27814 -- Removed an inaccurate sentence about Paginator.orphans.
This commit is contained in:
parent
6b048b364c
commit
27793431cf
|
@ -161,14 +161,14 @@ Optional arguments
|
||||||
------------------
|
------------------
|
||||||
|
|
||||||
``orphans``
|
``orphans``
|
||||||
The minimum number of items allowed on the last page, defaults to zero.
|
|
||||||
Use this when you don't want to have a last page with very few items.
|
Use this when you don't want to have a last page with very few items.
|
||||||
If the last page would normally have a number of items less than or equal
|
If the last page would normally have a number of items less than or equal
|
||||||
to ``orphans``, then those items will be added to the previous page (which
|
to ``orphans``, then those items will be added to the previous page (which
|
||||||
becomes the last page) instead of leaving the items on a page by
|
becomes the last page) instead of leaving the items on a page by
|
||||||
themselves. For example, with 23 items, ``per_page=10``, and
|
themselves. For example, with 23 items, ``per_page=10``, and
|
||||||
``orphans=3``, there will be two pages; the first page with 10 items and
|
``orphans=3``, there will be two pages; the first page with 10 items and
|
||||||
the second (and last) page with 13 items.
|
the second (and last) page with 13 items. ``orphans`` defaults to zero,
|
||||||
|
which means pages are never combined and the last page may have one item.
|
||||||
|
|
||||||
``allow_empty_first_page``
|
``allow_empty_first_page``
|
||||||
Whether or not the first page is allowed to be empty. If ``False`` and
|
Whether or not the first page is allowed to be empty. If ``False`` and
|
||||||
|
|
Loading…
Reference in New Issue