Ticket #7250: 7250.diff

File 7250.diff, 545 bytes (added by Marc Garcia, 16 years ago)

Patch that correct the issue

  • django/newforms/forms.py

     
    224224                self._errors[name] = e.messages
    225225                if name in self.cleaned_data:
    226226                    del self.cleaned_data[name]
     227                if isinstance(field, FileField):
     228                    self.files[name] = None
    227229        try:
    228230            self.cleaned_data = self.clean()
    229231        except ValidationError, e:
Back to Top