diff --git a/cms/envs/common.py b/cms/envs/common.py index c638d211ba..1ef5653aea 100644 --- a/cms/envs/common.py +++ b/cms/envs/common.py @@ -1845,6 +1845,12 @@ ENTERPRISE_API_CACHE_TIMEOUT = 3600 # Value is in seconds ENTERPRISE_CUSTOMER_CATALOG_DEFAULT_CONTENT_FILTER = {} BASE_COOKIE_DOMAIN = 'localhost' + +# This limits the type of roles that are submittable via the `student` app's manual enrollment +# audit API. While this isn't used in CMS, it is used via Enterprise which is installed in +# the CMS. Without this, we get errors. +MANUAL_ENROLLMENT_ROLE_CHOICES = ['Learner', 'Support', 'Partner'] + ############## Settings for the Discovery App ###################### COURSE_CATALOG_API_URL = 'http://localhost:8008/api/v1' diff --git a/cms/envs/production.py b/cms/envs/production.py index 880306aeee..66e4658e7e 100644 --- a/cms/envs/production.py +++ b/cms/envs/production.py @@ -591,6 +591,11 @@ ENTERPRISE_CUSTOMER_CATALOG_DEFAULT_CONTENT_FILTER = ENV_TOKENS.get( ENTERPRISE_CUSTOMER_CATALOG_DEFAULT_CONTENT_FILTER ) +# This limits the type of roles that are submittable via the `student` app's manual enrollment +# audit API. While this isn't used in CMS, it is used via Enterprise which is installed in +# the CMS. Without this, we get errors. +MANUAL_ENROLLMENT_ROLE_CHOICES = ENV_TOKENS.get('MANUAL_ENROLLMENT_ROLE_CHOICES', MANUAL_ENROLLMENT_ROLE_CHOICES) + ############### Settings for Retirement ##################### RETIRED_USERNAME_PREFIX = ENV_TOKENS.get('RETIRED_USERNAME_PREFIX', RETIRED_USERNAME_PREFIX) RETIRED_EMAIL_PREFIX = ENV_TOKENS.get('RETIRED_EMAIL_PREFIX', RETIRED_EMAIL_PREFIX)