Skip to content
Snippets Groups Projects
Commit afe4cb7f authored by Hangzhi Yu's avatar Hangzhi Yu
Browse files

Fix reference to person full names

parent 179d0aac
No related branches found
No related tags found
1 merge request!466Resolve "Coursebook printing does not work when teaches don't have short name set"
Pipeline #194985 failed
......@@ -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.all()]
return [teacher.short_name or teacher.full_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