summaryrefslogtreecommitdiff
path: root/tests/invalid_models_tests
diff options
context:
space:
mode:
authorMridul Dhall <mriduldhall@Mriduls-MacBook-Pro.local>2025-09-16 21:50:06 +0100
committerJacob Walls <jacobtylerwalls@gmail.com>2025-12-16 15:06:10 -0500
commitd1a4979fa55071581411b7d62eb1ee20f2380ae3 (patch)
treeba98fe98d6f0d32183464c1a5bba3846a4d687b3 /tests/invalid_models_tests
parent922c4cf972e04b1ce7ecee592231106724dcfd09 (diff)
Fixed #36594 -- Improved UniqueConstraint's nulls_distinct system check message.
Clarified that the nulls_distinct argument is not supported, as opposed to certain values for the argument. Thanks Russell Owen for the report.
Diffstat (limited to 'tests/invalid_models_tests')
-rw-r--r--tests/invalid_models_tests/test_models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/invalid_models_tests/test_models.py b/tests/invalid_models_tests/test_models.py
index fe3c812615..679afa3dc6 100644
--- a/tests/invalid_models_tests/test_models.py
+++ b/tests/invalid_models_tests/test_models.py
@@ -2891,8 +2891,8 @@ class ConstraintsTests(TestCase):
]
warn = Warning(
- f"{connection.display_name} does not support unique constraints with nulls "
- "distinct.",
+ f"{connection.display_name} does not support "
+ "UniqueConstraint.nulls_distinct.",
hint=(
"A constraint won't be created. Silence this warning if you don't care "
"about it."