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

Merge branch...

Merge branch '352-coursebook-printing-does-not-work-when-teaches-don-t-have-short-name-set' into 'master'

Resolve "Coursebook printing does not work when teaches don't have short name set"

Closes #352

See merge request !466
parents 179d0aac afe4cb7f
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 #195046 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