Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[soc2009/model-validation] Fixed #12078 ValidationError(s) from speci…

…fic fields not rendered on admin add/change form.

Thanks to Killarny for detailed report

git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/model-validation@12015 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 5559eb56febc5075a13beaea300e4ba803604ff2 1 parent f911df1
Honza Král authored December 28, 2009

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/forms/models.py
2  django/forms/models.py
@@ -248,7 +248,7 @@ def clean(self):
248 248
         except ValidationError, e:
249 249
             for k, v in e.message_dict.items():
250 250
                 if k != NON_FIELD_ERRORS:
251  
-                    self._errors.setdefault(k, []).extend(v)
  251
+                    self._errors.setdefault(k, ErrorList()).extend(v)
252 252
 
253 253
                     # Remove the data from the cleaned_data dict since it was invalid
254 254
                     if k in self.cleaned_data:

0 notes on commit 5559eb5

Please sign in to comment.
Something went wrong with that request. Please try again.