From 20b74b10be069f6bae7555113a3781a66f3767a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anssi=20K=C3=A4=C3=A4ri=C3=A4inen?= Date: Wed, 4 Feb 2015 15:16:11 +0200 Subject: [PATCH] Added a test for refs #24279 This issue was fixed in afe0bb7b13bb8dc4370f32225238012c873b0ee3. --- tests/queries/tests.py | 7 +++++++ 1 file changed, 7 insertions(+) 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, [])