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

Fix manager

parent cc64c242
No related branches found
No related tags found
No related merge requests found
......@@ -365,7 +365,7 @@ class TimetableQuerySet(models.QuerySet):
def filter_participant(self, person: Union[Person, int]):
"""Filter for all objects a participant (student) attends."""
return self.filter(Q(groups_members=person))
return self.filter(Q(groups__members=person))
def filter_group(self, group: Union[Group, int]):
"""Filter for all objects a group (class) attends."""
......
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