mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #32650 -- Fixed handling subquery aliasing on queryset combination.
This issue started manifesting itself when nesting a combined subquery
relying on exclude() since 8593e162c9 but
sql.Query.combine never properly handled subqueries outer refs in the
first place, see QuerySetBitwiseOperationTests.test_subquery_aliases()
(refs #27149).
Thanks Raffaele Salmaso for the report.
This commit is contained in:
committed by
Mariusz Felisiak
parent
34d1905712
commit
6d0cbe42c3
@@ -51,3 +51,8 @@ Bugfixes
|
||||
* Fixed a bug in Django 3.2 where a system check would crash on the
|
||||
:setting:`STATICFILES_DIRS` setting with a list of 2-tuples of
|
||||
``(prefix, path)`` (:ticket:`32665`).
|
||||
|
||||
* Fixed a long standing bug involving queryset bitwise combination when used
|
||||
with subqueries that began manifesting in Django 3.2, due to a separate fix
|
||||
using ``Exists`` to ``exclude()`` multi-valued relationships
|
||||
(:ticket:`32650`).
|
||||
|
||||
Reference in New Issue
Block a user