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 of00b0786de5from main. Regression in466920f6d7.
This commit is contained in:
committed by
Mariusz Felisiak
parent
65dfb06a1a
commit
d0267690f8
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user