summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBaptiste Mispelon <bmispelon@gmail.com>2013-12-06 14:59:08 +0100
committerBaptiste Mispelon <bmispelon@gmail.com>2013-12-06 15:22:47 +0100
commitf463789f6230c2fccf40c1e410443551bfb205a7 (patch)
treea57092dfce415aff0891bb8c6bd09a7417732710
parenta06fd092ef3cdfb3d5327a95bd946a483a98a3de (diff)
Added app_label to the error message when field reconstructing fails.
-rw-r--r--django/db/migrations/state.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/django/db/migrations/state.py b/django/db/migrations/state.py
index 53c24cb8da..87cc0cb80e 100644
--- a/django/db/migrations/state.py
+++ b/django/db/migrations/state.py
@@ -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,
))