mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #32411 -- Fixed __icontains lookup for JSONField on MySQL.
This commit is contained in:
committed by
Mariusz Felisiak
parent
51637222b6
commit
63d239db03
@@ -313,6 +313,12 @@ class TestQuerying(TestCase):
|
||||
[self.objs[3]],
|
||||
)
|
||||
|
||||
def test_icontains(self):
|
||||
self.assertSequenceEqual(
|
||||
NullableJSONModel.objects.filter(value__icontains='BaX'),
|
||||
self.objs[6:8],
|
||||
)
|
||||
|
||||
def test_isnull(self):
|
||||
self.assertSequenceEqual(
|
||||
NullableJSONModel.objects.filter(value__isnull=True),
|
||||
|
||||
Reference in New Issue
Block a user