Skip to content
Snippets Groups Projects
Commit 2d75d93a authored by permcu's avatar permcu
Browse files

Fix get_teachers_short_names

parent 2040480c
No related branches found
No related tags found
1 merge request!422Resolve "Add export functionality to course book"
......@@ -118,7 +118,7 @@ class Documentation(CalendarEvent):
return self.course.groups.all()
def get_teachers_short_names(self) -> List[str]:
return [teacher.short_name or teacher.name for teacher in self.teachers]
return [teacher.short_name or teacher.name for teacher in self.teachers.all()]
def __str__(self) -> str:
start_datetime = CalendarEvent.value_start_datetime(self)
......
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