summaryrefslogtreecommitdiff
path: root/tests/validation
diff options
context:
space:
mode:
authorAlmad <bugs@almad.net>2018-03-03 19:22:00 +0100
committerTim Graham <timograham@gmail.com>2018-03-03 13:22:00 -0500
commit3d8fadad0f7a3a32f28db034650182117ae071f7 (patch)
treebc27577b4ee8dec7682e4fd79c98e7e3f0cfef99 /tests/validation
parenta20aae414e762e4d9043e76b0bf8eccd334c8ebc (diff)
downloaddjango-3d8fadad0f7a3a32f28db034650182117ae071f7.tar.gz
Added model name to AutoField error message.
Diffstat (limited to 'tests/validation')
-rw-r--r--tests/validation/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/validation/models.py b/tests/validation/models.py
index f954cc3a4f..953370bc37 100644
--- a/tests/validation/models.py
+++ b/tests/validation/models.py
@@ -130,4 +130,4 @@ try:
auto2 = models.AutoField(primary_key=True)
except AssertionError as exc:
assertion_error = exc
-assert str(assertion_error) == "A model can't have more than one AutoField."
+assert str(assertion_error) == "Model validation.MultipleAutoFields can't have more than one AutoField."