From 3052c230945705a380bdb15f52b883093771a2ea Mon Sep 17 00:00:00 2001 From: Bryan Wilson Date: Thu, 6 Jul 2023 15:48:20 -0700 Subject: [PATCH] fixup: readability --- openedx/core/djangoapps/appsembler/openedx_api/filters.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openedx/core/djangoapps/appsembler/openedx_api/filters.py b/openedx/core/djangoapps/appsembler/openedx_api/filters.py index a9a789279930..661e62b330dc 100644 --- a/openedx/core/djangoapps/appsembler/openedx_api/filters.py +++ b/openedx/core/djangoapps/appsembler/openedx_api/filters.py @@ -109,7 +109,8 @@ 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() - return [courselike for courselike in queryset if courselike.org == allowed_org] + filtered = [courselike for courselike in queryset if courselike.org == allowed_org.short_name] + return filtered class AppsemblerMultiTenantFilterBackend(filters.DjangoFilterBackend):