fix: snafu in LearningMentor model __str__ method

This commit is contained in:
Livio Bieri 2024-03-27 15:03:46 +01:00
parent ed685b9c78
commit ea51f4f770
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ class LearningMentor(models.Model):
verbose_name_plural = "Lernbegleiter"
def __str__(self):
return f"{self.mentor} ({self.course.title})"
return f"{self.mentor} ({self.course_session.title})"
@property
def course_sessions(self):