Ticket #4385: 4385.diff

File 4385.diff, 542 bytes (added by Gary Wilson <gary.wilson@…>, 17 years ago)

Only assign to cleaned_data again if we had a clean_<field> method.

  • django/newforms/forms.py

    === modified file 'django/newforms/forms.py'
     
    188188                self.cleaned_data[name] = value
    189189                if hasattr(self, 'clean_%s' % name):
    190190                    value = getattr(self, 'clean_%s' % name)()
    191                 self.cleaned_data[name] = value
     191                    self.cleaned_data[name] = value
    192192            except ValidationError, e:
    193193                errors[name] = e.messages
    194194        try:
Back to Top