Skip to content
Snippets Groups Projects
Verified Commit f153bf36 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Fix use of update_or_create.

parent a9d6f820
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment