Skip to content
Snippets Groups Projects
Commit 5344062a authored by Julian's avatar Julian
Browse files

Drop old code

parent dc851092
No related branches found
No related tags found
1 merge request!360Resolve "Add absence management to course book student dialog"
......@@ -689,17 +689,6 @@ class Documentation(CalendarEvent):
return cls.objects.get(id=_id), False
def build_participation_status(self, person: Person) -> "ParticipationStatus":
"""Build participation status object for this documentation and a person."""
return ParticipationStatus(
person=person,
related_documentation=self,
datetime_start=self.datetime_start,
datetime_end=self.datetime_end,
# Set timezone directly as save of ParticipationStatus won't be called in bulk_create
timezone=self.timezone,
)
def touch(self):
"""Ensure that participation statuses are created for this documentation."""
# TODO: Check for preexisting absences in kolego
......
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