diff --git a/tests/invalid_models_tests/test_models.py b/tests/invalid_models_tests/test_models.py index 9d9a09d34e4b..8df84b118215 100644 --- a/tests/invalid_models_tests/test_models.py +++ b/tests/invalid_models_tests/test_models.py @@ -436,7 +436,7 @@ class Model(models.Model): fk_2 = models.ForeignKey(Target, models.CASCADE, related_name="target_2") class Meta: - constraints = [ + indexes = [ models.Index( fields=["id"], include=["fk_1_id", "fk_2"],