Ticket #7673: newforms_imagefix.diff
File newforms_imagefix.diff, 522 bytes (added by , 16 years ago) |
---|
-
django/newforms/fields.py
507 507 trial_image.verify() 508 508 except Exception: # Python Imaging Library doesn't recognize it as an image 509 509 raise ValidationError(self.error_messages['invalid_image']) 510 if hasattr(f, 'seek') and callable(f.seek): 511 f.seek(0) 510 512 return f 511 513 512 514 url_re = re.compile(