forked from CGM_Public/pretix_original
Add relevant_orderlist exporter (Bugfix #1)
All checks were successful
Build Deploy email notification tool / Apply-Kubernetes-Resources (push) Successful in 1m49s
All checks were successful
Build Deploy email notification tool / Apply-Kubernetes-Resources (push) Successful in 1m49s
This Exporter has the most useful information in the first rows of the exported document. Specifically the product and the custom questions. Other fields are also resorted somewhat to place very useless columns at the end of the table. See code for details :)
This commit is contained in:
@@ -1187,11 +1187,13 @@ class RelevantOrderListExporter(MultiSheetListExporter):
|
||||
return "{}_orders".format(self.event.slug)
|
||||
|
||||
|
||||
@receiver(register_data_exporters, dispatch_uid="exporter_orderlist")
|
||||
def register_orderlist_exporter(sender, **kwargs):
|
||||
@receiver(register_data_exporters, dispatch_uid="exporter_relevant_orderlist")
|
||||
def register_relevant_orderlist_exporter(sender, **kwargs):
|
||||
return RelevantOrderListExporter
|
||||
|
||||
|
||||
@receiver(register_multievent_data_exporters, dispatch_uid="multiexporter_orderlist")
|
||||
def register_multievent_orderlist_exporter(sender, **kwargs):
|
||||
@receiver(
|
||||
register_multievent_data_exporters, dispatch_uid="multiexporter_relevant_orderlist"
|
||||
)
|
||||
def register_multievent_relevant_orderlist_exporter(sender, **kwargs):
|
||||
return RelevantOrderListExporter
|
||||
|
||||
Reference in New Issue
Block a user