Fix AttributeError in exporters

This commit is contained in:
Raphael Michel
2023-04-16 14:11:41 +02:00
parent a3fb10bcb0
commit 35a3804751
6 changed files with 9 additions and 9 deletions

View File

@@ -229,6 +229,6 @@ class AllTicketsPDF(BaseExporter):
)
if self.is_multievent:
return '{}_tickets.pdf'.format(self.events.first().organizer.slug), 'application/pdf', outbuffer.read()
return '{}_tickets.pdf'.format(self.organizer.slug), 'application/pdf', outbuffer.read()
else:
return '{}_tickets.pdf'.format(self.event.slug), 'application/pdf', outbuffer.read()