Skip to content
Snippets Groups Projects
Unverified Commit 75f551e1 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Fix related name on substitute lesson.

parent 1fe7fa7b
No related branches found
No related tags found
No related merge requests found
......@@ -83,7 +83,7 @@ class LessonPeriod(models.Model):
room = models.ForeignKey('Room', models.CASCADE, null=True)
substitution = models.OneToOneField('LessonSubstitution', models.CASCADE,
'lesson_period', null=True)
related_name='lesson_period', null=True)
def get_subject(self):
if self.substitution:
......
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