fix can_cancel for shiftregs

pull/1/head
parent efe0d392db
commit eb56b658fa

@ -127,7 +127,7 @@ class ShiftRegistration(models.Model):
)
def can_cancel(self):
if self.state != self.REGISTERED:
if self.state != self.RegState.REGISTERED:
return false
return self.shift.start_at > (
timezone.now()

Loading…
Cancel
Save