Ticket #7677: newforms_imagefix.diff
File newforms_imagefix.diff, 463 bytes (added by , 16 years ago) |
---|
-
django/newforms/fields.py
diff --git a/django/newforms/fields.py b/django/newforms/fields.py index ad46d78..293791e 100644
a b class ImageField(FileField): 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 f.seek(0) 510 511 return f 511 512 512 513 url_re = re.compile(