From 121fd109de09ece4e263e508f9034df9b583da46 Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Sat, 4 Aug 2012 14:17:02 +0200 Subject: 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). --- django/forms/forms.py | 2 -- 1 file changed, 2 deletions(-) (limited to 'django/forms/forms.py') 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(): -- cgit v1.3