mirror of
https://github.com/django/django.git
synced 2025-10-26 07:06:08 +00:00
[3.2.x] Fixed #32650 -- Fixed handling subquery aliasing on queryset combination.
This issue started manifesting itself when nesting a combined subquery relying on exclude() since8593e162c9but 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. Backport of6d0cbe42c3from main
This commit is contained in:
committed by
Mariusz Felisiak
parent
1cc2eaf02d
commit
48e19bae49
@@ -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