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

Reformat and shorten docstring

parent 05fef509
No related branches found
No related tags found
1 merge request!111Resolve "[Person overview] Implement multiple selection for marking absences as excused or for deleting"
......@@ -73,9 +73,7 @@ class RegisterObjectRelatedQuerySet(QuerySet):
)
def annotate_subject(self) -> QuerySet:
"""
Annotate every personal note/lesson documentation with the subject of the lesson/event.
"""
"""Annotate lesson documentations with the subjects."""
return self.annotate(
subject=Case(
When(lesson_period__isnull=False, then="lesson_period__lesson__subject__name",),
......
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