From f463789f6230c2fccf40c1e410443551bfb205a7 Mon Sep 17 00:00:00 2001 From: Baptiste Mispelon Date: Fri, 6 Dec 2013 14:59:08 +0100 Subject: [PATCH] Added app_label to the error message when field reconstructing fails. --- django/db/migrations/state.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/django/db/migrations/state.py b/django/db/migrations/state.py index 53c24cb8daa..87cc0cb80ed 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, ))