Commit 27a9e13d authored by Dominik George's avatar Dominik George 🍳

Add string representation to lesson period.

parent a549e87a
......@@ -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']
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment