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

@@ -227,6 +227,10 @@ class Order(LoggedModel):
return False # nothing there to modify
@property
def can_user_cancel(self) -> bool:
return self.event.settings.cancel_allow_user
@property
def is_expired_by_time(self):
return (

View File

@@ -121,6 +121,10 @@ DEFAULTS = {
'default': None,
'type': datetime
},
'cancel_allow_user': {
'default': 'True',
'type': bool
},
'contact_mail': {
'default': None,
'type': str