From 208e72276a3e12a4e7998b9a1219bc96a16cf7b8 Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Wed, 14 Apr 2021 21:11:17 +0200 Subject: [3.2.x] Fixed #32645 -- Fixed QuerySet.update() crash when ordered by joined fields on MySQL/MariaDB. Thanks Matt Westcott for the report. Regression in 779e615e362108862f1681f965ee9e4f1d0ae6d2. Backport of ca9872905559026af82000e46cde6f7dedc897b6 from main --- docs/ref/models/querysets.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'docs/ref') diff --git a/docs/ref/models/querysets.txt b/docs/ref/models/querysets.txt index 7b6709ae8c..c840b6cd89 100644 --- a/docs/ref/models/querysets.txt +++ b/docs/ref/models/querysets.txt @@ -2645,7 +2645,8 @@ unique field in the order that is specified without conflicts. For example:: .. note:: - If the ``order_by()`` clause contains annotations, it will be ignored. + ``order_by()`` clause will be ignored if it contains annotations, inherited + fields, or lookups spanning relations. ``delete()`` ~~~~~~~~~~~~ -- cgit v1.3