mirror of
https://github.com/django/django.git
synced 2025-11-25 21:22:14 +00:00
Added model name to AutoField error message.
This commit is contained in:
parent
a20aae414e
commit
3d8fadad0f
2 changed files with 2 additions and 2 deletions
|
|
@ -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."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue