From 97d729943a9ff7950b7cb95bda91cedf2ad61e6c Mon Sep 17 00:00:00 2001 From: Bryan Wilson Date: Thu, 6 Jul 2023 15:38:05 -0700 Subject: [PATCH] fixup: return sequence, not generator el --- openedx/core/djangoapps/appsembler/openedx_api/filters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):