Skip to content
Snippets Groups Projects
Verified Commit 5ffa24ae authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Fix query

parent 136c261b
No related branches found
No related tags found
1 merge request!361Resolve "Add statistics page for absences"
Pipeline #193635 failed
......@@ -103,8 +103,8 @@ def annotate_person_statistics_for_school_term(
)
if group:
documentations = documentations.filter(
pk__in=Documentation.objects.filter(course__groups=group).union(
Documentation.objects.filter(course__groups__parent_groups=group)
pk__in=Documentation.objects.filter(course__groups=group).values_list("pk", flat=True).union(
Documentation.objects.filter(course__groups__parent_groups=group).values_list("pk", flat=True)
)
)
docs = list(documentations.values_list("pk", flat=True))
......
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