diff options
| author | Honza Král <honza.kral@gmail.com> | 2009-12-28 17:41:56 +0000 |
|---|---|---|
| committer | Honza Král <honza.kral@gmail.com> | 2009-12-28 17:41:56 +0000 |
| commit | 5559eb56febc5075a13beaea300e4ba803604ff2 (patch) | |
| tree | 07dc03c06efd4314edb95dd0c5fcad818211f482 | |
| parent | f911df19a455246198b0c8c81ab96bf2abec04f8 (diff) | |
[soc2009/model-validation] Fixed #12078 ValidationError(s) from specific 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
| -rw-r--r-- | django/forms/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/forms/models.py b/django/forms/models.py index a433c0cf6a..e86459594a 100644 --- a/django/forms/models.py +++ b/django/forms/models.py @@ -248,7 +248,7 @@ class BaseModelForm(BaseForm): except ValidationError, e: for k, v in e.message_dict.items(): if k != NON_FIELD_ERRORS: - self._errors.setdefault(k, []).extend(v) + self._errors.setdefault(k, ErrorList()).extend(v) # Remove the data from the cleaned_data dict since it was invalid if k in self.cleaned_data: |
