forked from CGM_Public/pretix_original
Fix export of answered files with binary content
This commit is contained in:
@@ -41,7 +41,7 @@ class AnswerFilesExporter(BaseExporter):
|
|||||||
with ZipFile(os.path.join(d, 'tmp.zip'), 'w') as zipf:
|
with ZipFile(os.path.join(d, 'tmp.zip'), 'w') as zipf:
|
||||||
for i in qs:
|
for i in qs:
|
||||||
if i.file:
|
if i.file:
|
||||||
i.file.open('r')
|
i.file.open('rb')
|
||||||
fname = '{}-{}-{}-q{}-{}'.format(
|
fname = '{}-{}-{}-q{}-{}'.format(
|
||||||
self.event.slug.upper(),
|
self.event.slug.upper(),
|
||||||
i.orderposition.order.code,
|
i.orderposition.order.code,
|
||||||
|
|||||||
Reference in New Issue
Block a user