diff --git a/tests/invalid_models_tests/test_models.py b/tests/invalid_models_tests/test_models.py index 9d9a09d34e..8df84b1182 100644 --- a/tests/invalid_models_tests/test_models.py +++ b/tests/invalid_models_tests/test_models.py @@ -436,7 +436,7 @@ class IndexesTests(TestCase): 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"],