summaryrefslogtreecommitdiff
path: root/tests/queries
diff options
context:
space:
mode:
authorAnssi Kääriäinen <anssi.kaariainen@thl.fi>2015-02-04 15:16:11 +0200
committerTim Graham <timograham@gmail.com>2015-02-06 07:43:59 -0500
commit20b74b10be069f6bae7555113a3781a66f3767a0 (patch)
tree8bf0260c005f43c213ae6feffacb8d903fc1adae /tests/queries
parent23a5ec07828b8f16d5abb89d892869ec0c635c45 (diff)
downloaddjango-20b74b10be069f6bae7555113a3781a66f3767a0.tar.gz
Added a test for refs #24279
This issue was fixed in afe0bb7b13bb8dc4370f32225238012c873b0ee3.
Diffstat (limited to 'tests/queries')
-rw-r--r--tests/queries/tests.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/queries/tests.py b/tests/queries/tests.py
index 03ee709c73..8340369a6d 100644
--- a/tests/queries/tests.py
+++ b/tests/queries/tests.py
@@ -3660,3 +3660,10 @@ class Ticket23605Tests(TestCase):
self.assertQuerysetEqual(qs1, [a1], lambda x: x)
qs2 = Ticket23605A.objects.exclude(complex_q)
self.assertQuerysetEqual(qs2, [a2], lambda x: x)
+
+
+class TestTicket24279(TestCase):
+ def test_ticket_24278(self):
+ School.objects.create()
+ qs = School.objects.filter(Q(pk__in=()) | Q())
+ self.assertQuerysetEqual(qs, [])