From 61b28da346b0fb44ef616ecdd689fc9b157030ff Mon Sep 17 00:00:00 2001 From: "Andreas (@xAndy) Zimmermann" Date: Wed, 27 Apr 2022 19:47:48 +0200 Subject: [PATCH] fix settings manager being initialized too early --- shiftregister/app/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shiftregister/app/models.py b/shiftregister/app/models.py index 73e4eef..a652d27 100644 --- a/shiftregister/app/models.py +++ b/shiftregister/app/models.py @@ -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):