Ticket #6138: svn.diff
File svn.diff, 878 bytes (added by , 17 years ago) |
---|
-
django/newforms/forms.py
188 188 value = getattr(self, 'clean_%s' % name)() 189 189 self.cleaned_data[name] = value 190 190 except ValidationError, e: 191 self._errors[name] = e.messages191 self._errors[name] = self.error_class(e.messages) 192 192 if name in self.cleaned_data: 193 193 del self.cleaned_data[name] 194 194 try: 195 195 self.cleaned_data = self.clean() 196 196 except ValidationError, e: 197 self._errors[NON_FIELD_ERRORS] = e.messages197 self._errors[NON_FIELD_ERRORS] = self.error_class(e.messages) 198 198 if self._errors: 199 199 delattr(self, 'cleaned_data') 200 200