2
0
Fork 0

fix settings manager being initialized too early

This commit is contained in:
Andreas (@xAndy) Zimmermann 2022-04-27 19:47:48 +02:00
parent c6abe5911e
commit 61b28da346
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ class ShiftRegistration(models.Model):
def can_cancel(self):
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):