Added setting to disable order cancelling for users

This commit is contained in:
Raphael Michel
2016-08-15 16:42:39 +02:00
parent 3dfdfdf5d0
commit 1cb956d508
7 changed files with 33 additions and 7 deletions

View File

@@ -160,6 +160,11 @@ class EventSettingsForm(SettingsForm):
required=False,
help_text=_("Public email address for contacting the organizer")
)
cancel_allow_user = forms.BooleanField(
label=_("Allow user to cancel unpaid orders"),
help_text=_("If unchecked, users cannot cancel orders by themselves"),
required=False
)
def clean(self):
data = super().clean()