mirror of
https://github.com/django/django.git
synced 2025-08-02 01:53:15 +00:00
Fixed #32411 -- Fixed __icontains lookup for JSONField on MySQL.
This commit is contained in:
parent
51637222b6
commit
63d239db03
2 changed files with 31 additions and 20 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue