diff --git a/openedx/core/djangoapps/appsembler/openedx_api/filters.py b/openedx/core/djangoapps/appsembler/openedx_api/filters.py index 4918f48d0b6..217e96b88fe 100644 --- a/openedx/core/djangoapps/appsembler/openedx_api/filters.py +++ b/openedx/core/djangoapps/appsembler/openedx_api/filters.py @@ -109,7 +109,7 @@ def filter_courselike_sequence_qs(request, queryset): """Filter get_queryset return values that return CourseKey Sequences instead of actual QuerySets.""" allowed_org = request.user.organizations.first() - yield filter(lambda key: key.org == allowed_org, queryset) + return filter(lambda key: key.org == allowed_org, queryset) class AppsemblerMultiTenantFilterBackend(filters.DjangoFilterBackend):