diff --git a/aleksis/apps/alsijil/util/alsijil_helpers.py b/aleksis/apps/alsijil/util/alsijil_helpers.py index b5879b1f2ddcb79dbe336c9c4285ddccc30f23f6..20d1a94ab12811a2aa8e8b0664746bd4dbaed7bd 100644 --- a/aleksis/apps/alsijil/util/alsijil_helpers.py +++ b/aleksis/apps/alsijil/util/alsijil_helpers.py @@ -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()