1
0
mirror of https://github.com/django/django.git synced 2025-10-27 07:36:08 +00:00

[3.2.x] Fixed #32548 -- Fixed crash when combining Q() objects with boolean expressions.

Backport of 00b0786de5 from main.

Regression in 466920f6d7.
This commit is contained in:
Jonathan Richards
2021-03-14 14:00:40 -07:00
committed by Mariusz Felisiak
parent 65dfb06a1a
commit d0267690f8
4 changed files with 25 additions and 16 deletions

View File

@@ -821,6 +821,10 @@ class BasicExpressionsTests(TestCase):
Q() & Exists(is_poc),
Exists(is_poc) | Q(),
Q() | Exists(is_poc),
Q(Exists(is_poc)) & Q(),
Q() & Q(Exists(is_poc)),
Q(Exists(is_poc)) | Q(),
Q() | Q(Exists(is_poc)),
]
for conditions in tests:
with self.subTest(conditions):