mirror of
https://github.com/pretix/pretix.git
synced 2026-08-27 13:24:41 +00:00
Check-in list export: Fall back to invoice address (Z#23133171) (#3650)
This commit is contained in:
@@ -628,11 +628,17 @@ class CSVCheckinList(CheckInListMixin, ListExporter):
|
|||||||
_('Yes') if op.blocked else '',
|
_('Yes') if op.blocked else '',
|
||||||
date_format(op.valid_from, 'SHORT_DATETIME_FORMAT') if op.valid_from else '',
|
date_format(op.valid_from, 'SHORT_DATETIME_FORMAT') if op.valid_from else '',
|
||||||
date_format(op.valid_until, 'SHORT_DATETIME_FORMAT') if op.valid_until else '',
|
date_format(op.valid_until, 'SHORT_DATETIME_FORMAT') if op.valid_until else '',
|
||||||
op.street or '',
|
]
|
||||||
op.zipcode or '',
|
if (op.street or op.zipcode or op.city):
|
||||||
op.city or '',
|
address = op
|
||||||
op.country if op.country else '',
|
else:
|
||||||
op.state or '',
|
address = ia
|
||||||
|
row += [
|
||||||
|
address.street or '',
|
||||||
|
address.zipcode or '',
|
||||||
|
address.city or '',
|
||||||
|
address.country if address.country else '',
|
||||||
|
address.state or '',
|
||||||
]
|
]
|
||||||
|
|
||||||
yield row
|
yield row
|
||||||
|
|||||||
Reference in New Issue
Block a user