mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #32548 -- Fixed crash when combining Q() objects with boolean expressions.
This commit is contained in:
committed by
Mariusz Felisiak
parent
54f60bc85d
commit
00b0786de5
@@ -833,6 +833,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