Commit f463789f authored by Baptiste Mispelon's avatar Baptiste Mispelon
Browse files

Added app_label to the error message when field reconstructing fails.

parent a06fd092
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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,
                ))