Skip to content
Snippets Groups Projects
Verified Commit b4557585 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Be more precise in string representation of lesson period.

parent 86a1276c
No related branches found
No related tags found
No related merge requests found
......@@ -164,7 +164,9 @@ class LessonPeriod(SchoolRelated):
return self.lesson.groups
def __str__(self) -> str:
return '%s, %d' % (self.period.get_weekday_display(), self.period.period)
return '%s, %d., %s, %s' % (self.period.get_weekday_display(), self.period.period,
', '.join(list(self.lesson.groups.values_list('short_name', flat=True))),
self.lesson.subject.name)
class Meta:
ordering = ['lesson__date_start', 'period__weekday', 'period__period']
......
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