Prepend slug to exported filenames (#719)

This commit is contained in:
Tobias Kunze
2017-12-18 09:12:13 +01:00
committed by Raphael Michel
parent 8543cb7ece
commit f81a7a397a
4 changed files with 4 additions and 4 deletions

View File

@@ -101,7 +101,7 @@ class JSONExporter(BaseExporter):
}
}
return 'pretixdata.json', 'application/json', json.dumps(jo, cls=DjangoJSONEncoder)
return '{}_pretixdata.json'.format(self.event.slug), 'application/json', json.dumps(jo, cls=DjangoJSONEncoder)
@receiver(register_data_exporters, dispatch_uid="exporter_json")