diff --git a/tests/schema/tests.py b/tests/schema/tests.py index 9c76a44200..663e0ec5f2 100644 --- a/tests/schema/tests.py +++ b/tests/schema/tests.py @@ -919,7 +919,7 @@ class SchemaTests(TransactionTestCase): editor.create_model(GeneratedFieldContainsModel) field = GeneratedField( - expression=Q(text__icontains="FOO"), + expression=Q(text__contains="foo"), db_persist=True, output_field=BooleanField(), )