diff options
| author | Hannes Ljungberg <hannes.ljungberg@gmail.com> | 2021-05-25 21:17:05 +0200 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-06-30 10:08:55 +0200 |
| commit | d8c90d4c22cb218f1c170eba086c53d3dff7fbc0 (patch) | |
| tree | c330f4a71f3cc41621d19b593d60b442488c7b38 /django/db/models/sql/where.py | |
| parent | 053141d31fe5aef1c255a1be183383860e0ccce9 (diff) | |
Fixed #32786 -- Moved subquery ordering clearing optimization to the _in lookup.
Co-Authored-By: Simon Charette <charette.s@gmail.com>
Diffstat (limited to 'django/db/models/sql/where.py')
| -rw-r--r-- | django/db/models/sql/where.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/django/db/models/sql/where.py b/django/db/models/sql/where.py index 795eff8395..2577e1d7a5 100644 --- a/django/db/models/sql/where.py +++ b/django/db/models/sql/where.py @@ -239,6 +239,7 @@ class SubqueryConstraint: self.alias = alias self.columns = columns self.targets = targets + query_object.clear_ordering(clear_default=True) self.query_object = query_object def as_sql(self, compiler, connection): |
