Ticket #7673: newforms_imagefix.diff

File newforms_imagefix.diff, 522 bytes (added by Michael Axiak, 16 years ago)

Fix for this...thanks apollo13!

  • django/newforms/fields.py

     
    507507            trial_image.verify()
    508508        except Exception: # Python Imaging Library doesn't recognize it as an image
    509509            raise ValidationError(self.error_messages['invalid_image'])
     510        if hasattr(f, 'seek') and callable(f.seek):
     511            f.seek(0)
    510512        return f
    511513
    512514url_re = re.compile(
Back to Top