Critical fix for image upload

This commit is contained in:
adi 2015-10-06 09:24:37 +02:00
parent d467253550
commit 7a391255a0

View file

@ -24,7 +24,7 @@ class ImageForm(forms.Form):
def save(self, commit=True):
img = scale_and_crop(self.files['image'], **MARKDOWNX_IMAGE_MAX_SIZE)
thumb_io = StringIO.StringIO()
thumb_io = StringIO()
img.save(thumb_io, self.files['image'].content_type.split('/')[-1].upper())
file_name = str(self.files['image'])