forked from CGM_Public/pretix_original
Event timeline: Always show effective end of sale
This commit is contained in:
@@ -84,13 +84,17 @@ def timeline_for_event(event, subevent=None):
|
|||||||
edit_url=ev_edit_url
|
edit_url=ev_edit_url
|
||||||
))
|
))
|
||||||
|
|
||||||
if ev.presale_end:
|
tl.append(TimelineEvent(
|
||||||
tl.append(TimelineEvent(
|
event=event, subevent=subevent,
|
||||||
event=event, subevent=subevent,
|
datetime=(
|
||||||
datetime=ev.presale_end,
|
ev.presale_end or ev.date_to or ev.date_from.astimezone(ev.timezone).replace(hour=23, minute=59, second=59)
|
||||||
description=pgettext_lazy('timeline', 'End of ticket sales'),
|
),
|
||||||
edit_url=ev_edit_url
|
description='{}{}'.format(
|
||||||
))
|
pgettext_lazy('timeline', 'End of ticket sales'),
|
||||||
|
f" ({pgettext_lazy('timeline', 'automatically because the event is over and no end of presale has been configured')})" if not ev.presale_end else ""
|
||||||
|
),
|
||||||
|
edit_url=ev_edit_url
|
||||||
|
))
|
||||||
|
|
||||||
rd = event.settings.get('last_order_modification_date', as_type=RelativeDateWrapper)
|
rd = event.settings.get('last_order_modification_date', as_type=RelativeDateWrapper)
|
||||||
if rd:
|
if rd:
|
||||||
|
|||||||
Reference in New Issue
Block a user