Put event slugs in export filenames (#768)

This commit is contained in:
Tobias Kunze
2018-02-12 12:30:13 +01:00
committed by Raphael Michel
parent ded539ce7a
commit 741d0bc686
4 changed files with 4 additions and 4 deletions

View File

@@ -319,4 +319,4 @@ class CSVCheckinList(BaseCheckinList):
writer.writerow(row)
return 'checkin.csv', 'text/csv', output.getvalue().encode("utf-8")
return '{}_checkin.csv'.format(self.event.slug), 'text/csv', output.getvalue().encode("utf-8")

View File

@@ -29,4 +29,4 @@ class AllTicketsPDF(BaseExporter):
p.save()
outbuffer = o._render_with_background(buffer)
return 'tickets.pdf', 'application/pdf', outbuffer.read()
return '{}_tickets.pdf'.format(self.event.slug), 'application/pdf', outbuffer.read()