Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions cms/djangoapps/contentstore/views/organization.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from django.views.generic import View
from organizations.api import get_organizations

from edly_features_app.filters import OrganizationsRequested
from openedx.core.djangolib.js_utils import dump_js_escaped_json


Expand All @@ -22,4 +23,7 @@ def get(self, request, *args, **kwargs): # lint-amnesty, pylint: disable=unused
"""Returns organization list as json."""
organizations = get_organizations()
org_names_list = [(org["short_name"]) for org in organizations]
#EDLYCUSTOM: filter the org list down to the current tenant's organizations
# (same OrganizationsRequested filter used for the course-creation org dropdown).
org_names_list = OrganizationsRequested.run_filter(organizations=org_names_list)
return HttpResponse(dump_js_escaped_json(org_names_list), content_type='application/json; charset=utf-8') # lint-amnesty, pylint: disable=http-response-with-content-type-json
Loading