diff options
| author | Claude Paroz <claude@2xlibre.net> | 2012-08-04 14:17:02 +0200 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2012-08-04 14:22:23 +0200 |
| commit | 121fd109de09ece4e263e508f9034df9b583da46 (patch) | |
| tree | 7f6c7399b2f2b8f4b0942a79726faae40f41f3ec /django/forms/forms.py | |
| parent | 10f979fd92000de1ac9713351f5cb749e2cbca03 (diff) | |
Fixed #5524 -- Do not remove cleaned_data when a form fails validation
cleaned_data is no longer deleted when form validation fails but only
contains the data that did validate.
Thanks to the various contributors to this patch (see ticket).
Diffstat (limited to 'django/forms/forms.py')
| -rw-r--r-- | django/forms/forms.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/django/forms/forms.py b/django/forms/forms.py index 4bc3ee9d26..4d4cdbe3db 100644 --- a/django/forms/forms.py +++ b/django/forms/forms.py @@ -271,8 +271,6 @@ class BaseForm(StrAndUnicode): self._clean_fields() self._clean_form() self._post_clean() - if self._errors: - del self.cleaned_data def _clean_fields(self): for name, field in self.fields.items(): |
