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

Fix Query.

parent 24e0321b
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(
member_of__lessons__periods__in=lesson_periods
member_of__lessons__lesson_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