2
0
Fork 0

fix can_cancel for shiftregs

This commit is contained in:
Andreas (@xAndy) Zimmermann 2022-05-17 16:30:29 +02:00
parent efe0d392db
commit eb56b658fa
1 changed files with 1 additions and 1 deletions

View File

@ -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()