summaryrefslogtreecommitdiff
path: root/tests/expressions
diff options
context:
space:
mode:
authorJonathan Richards <jonathan@golorry.com>2021-03-14 14:00:40 -0700
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2021-03-17 21:53:39 +0100
commit00b0786de533dbb3f6208d8d5eaddbf765b4e5b8 (patch)
tree10ad86b76142e46e3a82460b4c31aacefb9af383 /tests/expressions
parent54f60bc85df7fe38ba6ef6779996d8544d340d3e (diff)
downloaddjango-00b0786de533dbb3f6208d8d5eaddbf765b4e5b8.tar.gz
Fixed #32548 -- Fixed crash when combining Q() objects with boolean expressions.
Diffstat (limited to 'tests/expressions')
-rw-r--r--tests/expressions/tests.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/expressions/tests.py b/tests/expressions/tests.py
index 82d8a9f351..eb1bfdc2be 100644
--- a/tests/expressions/tests.py
+++ b/tests/expressions/tests.py
@@ -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):