diff --git a/kolibri/core/auth/api.py b/kolibri/core/auth/api.py index afa30e0adf..53781291c0 100644 --- a/kolibri/core/auth/api.py +++ b/kolibri/core/auth/api.py @@ -238,11 +238,6 @@ def filter_exclude_member_of(self, queryset, name, value): def filter_exclude_coach_for(self, queryset, name, value): return queryset.exclude( Q(roles__in=Role.objects.filter(kind=role_kinds.COACH, collection=value)) - | Q( - roles__in=Role.objects.filter( - kind=role_kinds.COACH, collection_id=value.parent_id - ) - ) ) def filter_exclude_user_type(self, queryset, name, value):