mirror of
https://github.com/pretix/pretix.git
synced 2026-05-11 16:13:59 +00:00
Prepend slug to exported filenames (#719)
This commit is contained in:
committed by
Raphael Michel
parent
8543cb7ece
commit
f81a7a397a
@@ -26,7 +26,7 @@ class InvoiceExporter(BaseExporter):
|
||||
i.file.close()
|
||||
|
||||
with open(os.path.join(d, 'tmp.zip'), 'rb') as zipf:
|
||||
return 'invoices.zip', 'application/zip', zipf.read()
|
||||
return '{}_invoices.zip'.format(self.event.slug), 'application/zip', zipf.read()
|
||||
|
||||
|
||||
@receiver(register_data_exporters, dispatch_uid="exporter_invoices")
|
||||
|
||||
Reference in New Issue
Block a user