summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorDuane Hilton <duane9@gmail.com>2016-03-14 20:40:02 -0600
committerTim Graham <timograham@gmail.com>2016-03-15 10:14:29 -0400
commit0dc3822f56a0db83f9fc0b1ed320bbeb477eca63 (patch)
treeb48ff358d8f9902c3fffe6250c292f4c38de5898 /docs
parentc6424efbc6114eeefe7ec7545de7e127ed189e92 (diff)
[1.9.x] Fixed #26290 -- Documented that a QuerySet for pagination should be ordered.
Backport of f8b23e52e86307428da2cf928bf4f1d9fdbd2694 from master
Diffstat (limited to 'docs')
-rw-r--r--docs/topics/pagination.txt7
1 files changed, 5 insertions, 2 deletions
diff --git a/docs/topics/pagination.txt b/docs/topics/pagination.txt
index 7fb31324fb..a45b8fabd6 100644
--- a/docs/topics/pagination.txt
+++ b/docs/topics/pagination.txt
@@ -140,8 +140,11 @@ Required arguments
------------------
``object_list``
- A list, tuple, Django ``QuerySet``, or other sliceable object with a
- ``count()`` or ``__len__()`` method.
+ A list, tuple, ``QuerySet``, or other sliceable object with a ``count()``
+ or ``__len__()`` method. For consistent pagination, ``QuerySet``\s should
+ be ordered, e.g. with an :meth:`~django.db.models.query.QuerySet.order_by`
+ clause or with a default :attr:`~django.db.models.Options.ordering` on the
+ model.
``per_page``
The maximum number of items to include on a page, not including orphans