Add export to .xlsx for lists

This commit is contained in:
Raphael Michel
2018-11-30 16:10:32 +01:00
parent 81693e042c
commit 478d8e4116
5 changed files with 40 additions and 13 deletions

View File

@@ -161,7 +161,7 @@ class OrderListExporter(ListExporter):
yield row
def get_filename(self):
return '{}_orders.csv'.format(self.event.slug)
return '{}_orders'.format(self.event.slug)
class PaymentListExporter(ListExporter):
@@ -231,7 +231,7 @@ class PaymentListExporter(ListExporter):
yield row
def get_filename(self):
return '{}_payments.csv'.format(self.event.slug)
return '{}_payments'.format(self.event.slug)
class QuotaListExporter(ListExporter):
@@ -260,7 +260,7 @@ class QuotaListExporter(ListExporter):
yield row
def get_filename(self):
return '{}_quotas.csv'.format(self.event.slug)
return '{}_quotas'.format(self.event.slug)
@receiver(register_data_exporters, dispatch_uid="exporter_orderlist")