diff --git a/tests/model_fields/models.py b/tests/model_fields/models.py index efa41a1a5b..9733bba23c 100644 --- a/tests/model_fields/models.py +++ b/tests/model_fields/models.py @@ -650,7 +650,7 @@ class GeneratedModelUniqueConstraint(GeneratedModelBase): class Meta: required_db_features = { "supports_stored_generated_columns", - "supports_table_check_constraints", + "supports_expression_indexes", } constraints = [ models.UniqueConstraint(F("a"), name="Generated model unique constraint a"),