Skip to content

Commit

Permalink
fixup syntax on filter
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanlandia committed Jul 6, 2023
1 parent feffc88 commit 720c336
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openedx/core/djangoapps/appsembler/openedx_api/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def filter_allowed_org(self, queryset, name, value):
raise # TODO: do something else

if model in OPAQUE_KEY_FIELD_LOOKUP_MODELS:
return queryset.filter(**{lookup: "{}{}+".format(COURSE_PREFIX, user_allowed_org))})
return queryset.filter(**{lookup: "{}{}+".format(COURSE_PREFIX, user_allowed_org)})
elif model in STRING_ORG_NAME_LOOKUP_MODELS:
return queryset.filter(**{lookup: user_allowed_org.short_name})
else:
Expand Down

0 comments on commit 720c336

Please sign in to comment.