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

Simplify getting of teacher names in _generate_dicts_for_lesson_periods

parent 7536ec48
No related branches found
No related tags found
1 merge request!170Simplify getting of teacher names in _generate_dicts_for_lesson_periods
Pipeline #6722 passed
......@@ -210,11 +210,7 @@ def _generate_dicts_for_lesson_periods(
):
continue
teachers = (
sub.teacher_names
if sub and sub.teachers.all()
else lesson_period.lesson.teacher_names
)
teachers = lesson_period.teacher_names
if (
filter_dict.get("subject")
and filter_dict.get("subject") != lesson_period.get_subject()
......
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