Skip to content
Snippets Groups Projects
Verified Commit bb633e34 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

[Supervisions] Fix call of get_or_create so that supervisions are correctly updated and deleted

parent bab86952
No related branches found
No related tags found
No related merge requests found
......@@ -376,7 +376,7 @@ def import_supervision_areas(
new_supervision, created = new_area.supervisions.get_or_create(
validity=validity_range,
break_item=breaks_ref[weekday][period_after_break],
defaults={"teacher": teacher},
teacher=teacher,
)
# Log
......
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