mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Added app_label to the error message when field reconstructing fails.
This commit is contained in:
parent
a06fd092ef
commit
f463789f62
1 changed files with 2 additions and 1 deletions
|
@ -102,8 +102,9 @@ class ModelState(object):
|
|||
try:
|
||||
fields.append((name, field_class(*args, **kwargs)))
|
||||
except TypeError as e:
|
||||
raise TypeError("Couldn't reconstruct field %s on %s: %s" % (
|
||||
raise TypeError("Couldn't reconstruct field %s on %s.%s: %s" % (
|
||||
name,
|
||||
model._meta.app_label,
|
||||
model._meta.object_name,
|
||||
e,
|
||||
))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue