forked from CGM_Public/pretix_original
Exporter/orderlist: Add link to position order page (Z#23202597)
This commit is contained in:
@@ -668,6 +668,7 @@ class OrderListExporter(MultiSheetListExporter):
|
|||||||
_('External customer ID'),
|
_('External customer ID'),
|
||||||
_('Check-in lists'),
|
_('Check-in lists'),
|
||||||
_('Payment providers'),
|
_('Payment providers'),
|
||||||
|
_('Position order link')
|
||||||
]
|
]
|
||||||
|
|
||||||
# get meta_data labels from first cached event
|
# get meta_data labels from first cached event
|
||||||
@@ -812,6 +813,14 @@ class OrderListExporter(MultiSheetListExporter):
|
|||||||
if p and p != 'free'
|
if p and p != 'free'
|
||||||
]))
|
]))
|
||||||
|
|
||||||
|
row.append(
|
||||||
|
build_absolute_uri(order.event, 'presale:event.order.position', kwargs={
|
||||||
|
'order': order.code,
|
||||||
|
'secret': op.web_secret,
|
||||||
|
'position': op.positionid
|
||||||
|
})
|
||||||
|
)
|
||||||
|
|
||||||
if has_subevents:
|
if has_subevents:
|
||||||
if op.subevent:
|
if op.subevent:
|
||||||
row += op.subevent.meta_data.values()
|
row += op.subevent.meta_data.values()
|
||||||
|
|||||||
Reference in New Issue
Block a user