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

@@ -219,7 +219,7 @@ class ItemDataExporter(ListExporter):
def get_filename(self):
if self.is_multievent:
return '{}_products'.format(self.events.first().organizer.slug)
return '{}_products'.format(self.organizer.slug)
return '{}_products'.format(self.event.slug)
def prepare_xlsx_sheet(self, ws):