forked from CGM_Public/pretix_original
Export: Fix inconsistent file name
This commit is contained in:
@@ -218,7 +218,9 @@ class ItemDataExporter(ListExporter):
|
|||||||
yield row
|
yield row
|
||||||
|
|
||||||
def get_filename(self):
|
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):
|
def prepare_xlsx_sheet(self, ws):
|
||||||
self.__ws = ws
|
self.__ws = ws
|
||||||
|
|||||||
Reference in New Issue
Block a user