Skip to content

Commit

Permalink
fixup: readability
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanlandia committed Jul 6, 2023
1 parent ec0f695 commit 3052c23
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion openedx/core/djangoapps/appsembler/openedx_api/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 3052c23

Please sign in to comment.