summaryrefslogtreecommitdiff
path: root/tests/invalid_models_tests
diff options
context:
space:
mode:
authorSimon Charette <charette.s@gmail.com>2024-02-19 00:55:40 -0500
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2024-02-21 08:25:41 +0100
commitabe6c1f93eb112066691b590052704948789c60f (patch)
tree2427a6dc01a20132b0f839e7d5ab675902779a51 /tests/invalid_models_tests
parent0a646c8e08605ba6896ef8f2938231d23c2181cc (diff)
Refs #30913 -- Corrected IndexesTests.test_index_include_pointing_to_fk().
This adjusts a test assigning an Index to Meta.constraints.
Diffstat (limited to 'tests/invalid_models_tests')
-rw-r--r--tests/invalid_models_tests/test_models.py2
1 files changed, 1 insertions, 1 deletions
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"],