mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Thanks Harris Lapiroff for the report.
This commit is contained in:
parent
8516f7c49b
commit
d976760260
2 changed files with 9 additions and 0 deletions
|
@ -238,6 +238,10 @@ class TestQuerying(PostgreSQLTestCase):
|
|||
self.objs[7:9]
|
||||
)
|
||||
|
||||
def test_iexact(self):
|
||||
self.assertTrue(JSONModel.objects.filter(field__foo__iexact='BaR').exists())
|
||||
self.assertFalse(JSONModel.objects.filter(field__foo__iexact='"BaR"').exists())
|
||||
|
||||
def test_icontains(self):
|
||||
self.assertFalse(JSONModel.objects.filter(field__foo__icontains='"bar"').exists())
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue