From 00b0786de533dbb3f6208d8d5eaddbf765b4e5b8 Mon Sep 17 00:00:00 2001 From: Jonathan Richards Date: Sun, 14 Mar 2021 14:00:40 -0700 Subject: Fixed #32548 -- Fixed crash when combining Q() objects with boolean expressions. --- tests/expressions/tests.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/expressions') 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): -- cgit v1.2.1