mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Added model name to AutoField error message.
This commit is contained in:
@@ -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."
|
||||
|
||||
Reference in New Issue
Block a user