Skip to content
Snippets Groups Projects
Unverified Commit 8ee992bb authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Skip to next lesson if teacher assignment failed.

parent 2fe1947f
No related branches found
No related tags found
No related merge requests found
......@@ -111,6 +111,7 @@ def untis_import_xml(request, untis_xml):
except Person.DoesNotExist:
messages.error(request, _(
'Failed to import lesson: Teacher %s does not exist.') % teacher_short_name)
continue
lesson, created = Lesson.objects.get_or_create(groups=groups, periods=periods, defaults={
'subject': subject, 'teachers': teachers, 'date_start': date_start, 'date_end': date_end})
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