From f6017dfa870bd8bed376af34691c19aa63572e05 Mon Sep 17 00:00:00 2001 From: Dominik George <dominik.george@teckids.org> Date: Sat, 14 Sep 2019 18:32:06 +0200 Subject: [PATCH] Fix name reuse. --- biscuit/apps/untis/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/biscuit/apps/untis/util.py b/biscuit/apps/untis/util.py index 45ef67c..7637eb2 100644 --- a/biscuit/apps/untis/util.py +++ b/biscuit/apps/untis/util.py @@ -69,7 +69,7 @@ def untis_import_xml(request: HttpRequest, untis_xml: Union[BinaryIO, str]) -> N class_teacher_short_name = get_child_node_id( class_node, 'class_teacher')[3:] - class_, _ = Group.objects.update_or_create(short_name=short_name, defaults={ + class_, created = Group.objects.update_or_create(short_name=short_name, defaults={ 'name': name}) try: -- GitLab