Ticket #12645: bugfix.diff
File bugfix.diff, 1002 bytes (added by , 15 years ago) |
---|
-
django/forms/forms.py
275 275 else: 276 276 value = field.clean(value) 277 277 self.cleaned_data[name] = value 278 if hasattr(self, 'clean_%s' % name): 279 value = getattr(self, 'clean_%s' % name)() 280 self.cleaned_data[name] = value 278 try: 279 if hasattr(self, 'clean_%s' % name): 280 value = getattr(self, 'clean_%s' % name)() 281 self.cleaned_data[name] = value 282 except UnicodeEncodeError, e: 283 # hasattr can't handle non-ascii characters: just pass. 284 pass 281 285 except ValidationError, e: 282 286 self._errors[name] = self.error_class(e.messages) 283 287 if name in self.cleaned_data: