Commits

Anonymous committed a3c6f96

Use field name in error dict, which might include a prefix if set.

Comments (0)

Files changed (1)

     @property
     def errors(self):
         if self._errors is None:
-            self._errors = dict((name, f.errors) for name, f in self._fields.iteritems() if f.errors)
+            self._errors = dict((f.name, f.errors) for f in self._fields.itervalues() if f.errors)
         return self._errors