mirror of
https://github.com/pretix/pretix.git
synced 2026-05-08 15:44:02 +00:00
Waiting list: Allow to set auto-disable date (Z#23141338) (#4004)
* Waiting list: Allow to set auto-disable date (Z#23141338) * ADd warning on non-esries events
This commit is contained in:
@@ -118,6 +118,10 @@ class WaitingView(EventViewMixin, FormView):
|
||||
messages.error(request, pgettext_lazy('subevent', "You need to select a date."))
|
||||
return redirect(self.get_index_url())
|
||||
|
||||
if not (self.subevent or self.request.event).waiting_list_active:
|
||||
messages.error(request, _("Waiting lists are disabled for this event."))
|
||||
return redirect(self.get_index_url())
|
||||
|
||||
return super().dispatch(request, *args, **kwargs)
|
||||
|
||||
def form_valid(self, form):
|
||||
|
||||
Reference in New Issue
Block a user