Skip to content
Snippets Groups Projects
Commit 07131ee5 authored by permcu's avatar permcu
Browse files

Add comment deprecating the Documentation's get_subject-method

& clearify why and what to use instead.
= there is no need for the get_subject-method!
parent 40b86d09
No related branches found
No related tags found
1 merge request!426Add comment deprecating the Documentation's get_subject-method
Pipeline #193426 failed
...@@ -101,6 +101,9 @@ class Documentation(CalendarEvent): ...@@ -101,6 +101,9 @@ class Documentation(CalendarEvent):
blank=True, null=True, verbose_name=_("Participation touched at") blank=True, null=True, verbose_name=_("Participation touched at")
) )
# get_subject is deprecated
# Use doc.subject, .course & .teachers directly instead.
# The amends logic is done onetime for each documentation in the create_from_lesson_event method.
def get_subject(self) -> str: def get_subject(self) -> str:
if self.subject: if self.subject:
return self.subject return self.subject
......
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