Export: Fix inconsistent file name

This commit is contained in:
Raphael Michel
2023-03-10 15:17:31 +01:00
parent 1ff8c6f78b
commit 440d1b5766

View File

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