Commit 91cf3e3d authored by Jérome Perrin's avatar Jérome Perrin Committed by Arnaud Fontaine

ImageField: py3

parent cd8b0798
......@@ -169,7 +169,7 @@ class ImageFieldWidget(Widget.TextWidget):
# Big images are cut into smaller chunks, so it's required to cast to
# str. See OFS/Image -> _read_data method for more information
image_data = str(image_data)
image_data = bytes(image_data)
format = content_type.split('/')[-1]
# add the image to the odg document
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment