From 3d8fadad0f7a3a32f28db034650182117ae071f7 Mon Sep 17 00:00:00 2001 From: Almad Date: Sat, 3 Mar 2018 19:22:00 +0100 Subject: Added model name to AutoField error message. --- tests/validation/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') 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." -- cgit v1.3