mirror of
https://github.com/pretix/pretix.git
synced 2026-05-06 15:24:02 +00:00
Waiting list: Show warning if event is not live
This commit is contained in:
@@ -174,6 +174,12 @@ class WaitingListView(EventPermissionRequiredMixin, PaginationMixin, ListView):
|
||||
|
||||
ctx['any_avail'] = any_avail
|
||||
ctx['estimate'] = self.get_sales_estimate()
|
||||
|
||||
ctx['running'] = (
|
||||
self.request.event.live
|
||||
and (self.request.event.has_subevents or self.request.event.presale_is_running)
|
||||
)
|
||||
|
||||
return ctx
|
||||
|
||||
def get_sales_estimate(self):
|
||||
|
||||
Reference in New Issue
Block a user