Skip to content
Snippets Groups Projects
Commit 8bead885 authored by Jonathan Weth's avatar Jonathan Weth :keyboard: Committed by Julian
Browse files

Simplify

parent dc531f31
No related branches found
No related tags found
1 merge request!362Resolve "Add personal note management dialog in course book"
Pipeline #191387 canceled
......@@ -56,8 +56,8 @@ class ParticipationStatusType(
documentation=root.related_documentation,
tardiness__isnull=False,
)
if len(notes):
return notes.first()
if notes:
return notes[0]
return None
......
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