Fix export of answered files with binary content

This commit is contained in:
Raphael Michel
2017-09-07 12:38:39 +02:00
parent 214a6eb5ce
commit cd94549606

View File

@@ -41,7 +41,7 @@ class AnswerFilesExporter(BaseExporter):
with ZipFile(os.path.join(d, 'tmp.zip'), 'w') as zipf:
for i in qs:
if i.file:
i.file.open('r')
i.file.open('rb')
fname = '{}-{}-{}-q{}-{}'.format(
self.event.slug.upper(),
i.orderposition.order.code,