Added a test for refs #24279

This issue was fixed in afe0bb7b13.
This commit is contained in:
Anssi Kääriäinen 2015-02-04 15:16:11 +02:00 committed by Tim Graham
parent 23a5ec0782
commit 20b74b10be
1 changed files with 7 additions and 0 deletions

View File

@ -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, [])