fix settings manager being initialized too early
This commit is contained in:
parent
c6abe5911e
commit
61b28da346
|
@ -77,7 +77,7 @@ class ShiftRegistration(models.Model):
|
||||||
|
|
||||||
def can_cancel(self):
|
def can_cancel(self):
|
||||||
return self.shift.start_at > (
|
return self.shift.start_at > (
|
||||||
timezone.now() + global_preferences["helper__min_cancel_time"],
|
timezone.now() + global_preferences_registry.manager()["helper__min_cancel_time"]
|
||||||
)
|
)
|
||||||
|
|
||||||
def send_reminder(self):
|
def send_reminder(self):
|
||||||
|
|
Loading…
Reference in New Issue