From abe6c1f93eb112066691b590052704948789c60f Mon Sep 17 00:00:00 2001 From: Simon Charette Date: Mon, 19 Feb 2024 00:55:40 -0500 Subject: [PATCH] Refs #30913 -- Corrected IndexesTests.test_index_include_pointing_to_fk(). This adjusts a test assigning an Index to Meta.constraints. --- tests/invalid_models_tests/test_models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"],