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

Merge branch '10-set-teachers-list-to-if-there-are-no-old-teacher-and-no-new-teacher' into 'master'

Resolve "Set teachers list to [] if there are no old teacher and no new teacher"

Closes #10

See merge request !42
parents e46c220e 065b2f45
No related branches found
No related tags found
1 merge request!42Resolve "Set teachers list to [] if there are no old teacher and no new teacher"
Pipeline #4718 passed
......@@ -177,6 +177,8 @@ def import_substitutions(
room = room_old if not room_new and room_old else room_new
subject = subject_old if not subject_new else subject_new
teachers = [teacher_old] if not teacher_new else [teacher_new]
if not teacher_new and not teacher_old:
teachers = []
(extra_lesson, created,) = (
chronos_models.ExtraLesson.objects.select_related(None)
......
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