Skip to content
Snippets Groups Projects
Verified Commit 1d5aad81 authored by Tom Teichler's avatar Tom Teichler :beers:
Browse files

Fix personal note list.

parent 79f733bd
No related branches found
No related tags found
1 merge request!30Resolve "[Week view] personal notes only work when filtering by group"
......@@ -122,7 +122,7 @@ def week_view(request: HttpRequest, year: Optional[int] = None, week: Optional[i
persons = Person.objects.filter(
is_active=True
).filter(
Q(member_of=group) | Q(member_of__parent_groups=group)
member_of__lessons__periods__in=lesson_periods
).distinct().prefetch_related(
'personal_notes'
).annotate(
......
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