fix typo
This commit is contained in:
parent
10e642c4a3
commit
c94074ccd7
|
@ -130,7 +130,7 @@ class ShiftRegistration(models.Model):
|
||||||
|
|
||||||
def can_cancel(self):
|
def can_cancel(self):
|
||||||
if self.state != self.RegState.REGISTERED:
|
if self.state != self.RegState.REGISTERED:
|
||||||
return false
|
return False
|
||||||
return self.shift.start_at > (
|
return self.shift.start_at > (
|
||||||
timezone.now()
|
timezone.now()
|
||||||
+ global_preferences_registry.manager()["helper__min_cancel_time"]
|
+ global_preferences_registry.manager()["helper__min_cancel_time"]
|
||||||
|
|
Loading…
Reference in New Issue