forked from CGM_Public/pretix_original
Check for quotas before going live
This commit is contained in:
@@ -551,6 +551,9 @@ class EventLive(EventPermissionRequiredMixin, TemplateView):
|
|||||||
if has_paid_things and not has_payment_provider:
|
if has_paid_things and not has_payment_provider:
|
||||||
issues.append(_('You have configured at least one paid product but have not enabled any payment methods.'))
|
issues.append(_('You have configured at least one paid product but have not enabled any payment methods.'))
|
||||||
|
|
||||||
|
if not self.request.event.quotas.exists():
|
||||||
|
issues.append(_('You need to configure at least one quota to sell anything.'))
|
||||||
|
|
||||||
return issues
|
return issues
|
||||||
|
|
||||||
def post(self, request, *args, **kwargs):
|
def post(self, request, *args, **kwargs):
|
||||||
|
|||||||
Reference in New Issue
Block a user