Commit 503df2d7 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

fix QR code output in BarcodeUtils.

parent 3592dd40
...@@ -25,7 +25,7 @@ def generateBarcodeImage(self, barcode_type, data, REQUEST=None): ...@@ -25,7 +25,7 @@ def generateBarcodeImage(self, barcode_type, data, REQUEST=None):
from cStringIO import StringIO from cStringIO import StringIO
fp = StringIO() fp = StringIO()
img = qrcode.make(data) img = qrcode.make(data)
img.save(fp, format='png') img.save(fp, 'png')
fp.seek(0) fp.seek(0)
output = fp.read() output = fp.read()
else: else:
......
1050 1051
\ No newline at end of file \ No newline at end of file
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