summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/models/options.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/ref/models/options.txt b/docs/ref/models/options.txt
index 3433d0730f..62064d4f24 100644
--- a/docs/ref/models/options.txt
+++ b/docs/ref/models/options.txt
@@ -309,6 +309,12 @@ not be looking at your Django code. For example::
ordering = [F("author").asc(nulls_last=True)]
+.. admonition:: Default ordering and GROUP BY
+
+ In :ref:`GROUP BY queries <aggregation-ordering-interaction>` (for example,
+ those using :meth:`~.QuerySet.values` and :meth:`~.QuerySet.annotate`), the
+ default ordering is not applied.
+
.. warning::
Ordering is not a free operation. Each field you add to the ordering