Skip to content
Snippets Groups Projects

Simplify getting of teacher names in _generate_dicts_for_lesson_periods

Merged Jonathan Weth requested to merge refactor/simplify-getting-teachers into master
1 file
+ 1
5
Compare changes
  • Side-by-side
  • Inline
@@ -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()
Loading