Ticket #3896: 3896.diff
File 3896.diff, 690 bytes (added by , 18 years ago) |
---|
-
django/newforms/forms.py
=== modified file 'django/newforms/forms.py'
183 183 value = field.widget.value_from_datadict(self.data, self.add_prefix(name)) 184 184 try: 185 185 value = field.clean(value) 186 self.clean_data[name] = value187 186 if hasattr(self, 'clean_%s' % name): 188 value = getattr(self, 'clean_%s' % name)( )187 value = getattr(self, 'clean_%s' % name)(value) 189 188 self.clean_data[name] = value 190 189 except ValidationError, e: 191 190 errors[name] = e.messages