diff --git a/biscuit/apps/chronos/models.py b/biscuit/apps/chronos/models.py index c738fe13e3f8e48a3eb118f7292a970345b13542..dc24221519e21c4c697a022b1053236e2decfa80 100644 --- a/biscuit/apps/chronos/models.py +++ b/biscuit/apps/chronos/models.py @@ -150,5 +150,8 @@ class LessonPeriod(models.Model): def get_groups(self) -> models.query.QuerySet: return self.lesson.groups + def __str__(self) -> str: + return '%s, %d' % (self.period.get_weekday_display(), self.period.period) + class Meta: ordering = ['lesson__date_start', 'period__weekday', 'period__period']