mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
Put event slugs in export filenames (#768)
This commit is contained in:
committed by
Raphael Michel
parent
ded539ce7a
commit
741d0bc686
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user