Skip to content
Snippets Groups Projects
Verified Commit 03936d59 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Remove legacy type property from LessonSubstitution

Advances #75
parent 181a6a9e
No related branches found
No related tags found
1 merge request!54Resolve "Improve handling of different types"
......@@ -509,15 +509,6 @@ class LessonSubstitution(ExtensibleModel):
if self.subject and self.cancelled:
raise ValidationError(_("Lessons can only be either substituted or cancelled."))
@property
def type_(self):
if self.cancelled:
return "cancellation"
elif self.cancelled_for_teachers:
return "cancellation_for_teachers"
else:
return "substitution"
@property
def date(self):
week = CalendarWeek(week=self.week)
......
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