diff --git a/biscuit/apps/alsijil/model_extensions.py b/biscuit/apps/alsijil/model_extensions.py index bee944dae4c257b45ead588a02e65d96d86bc28d..2b78cead0be4024b1a037cbcda6d1aebfd3caea7 100644 --- a/biscuit/apps/alsijil/model_extensions.py +++ b/biscuit/apps/alsijil/model_extensions.py @@ -27,8 +27,10 @@ def mark_absent(self, day: date, starting_period: Optional[int] = 0, absent=True person=self, lesson_period=lesson_period, week=wanted_week.week, - absent=absent, - excused=excused + defaults={ + 'absent': absent, + 'excused': excused + } )