Skip to content
Snippets Groups Projects
Commit 2040480c authored by permcu's avatar permcu
Browse files

Fix prefetch_notable_participations

parent 6f701073
No related branches found
No related tags found
1 merge request!422Resolve "Add export functionality to course book"
......@@ -39,11 +39,9 @@ def generate_full_register_printout(
"participations",
to_attr="notable_participations",
queryset=ParticipationStatus.objects
.filter(absence_reason__tags__short_name="class_register")
.exclude(
Q(absence_reason__isnull=True)
| Q(tardiness__isnull=True)
)
.filter(Q(absence_reason__tags__short_name="class_register")
| Q(tardiness__isnull=False)
)
.select_related("absence_reason", *select_related)
.prefetch_related(*prefetch_related),
)
......
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