Skip to content

Commit

Permalink
Add language selection field in the sites creation automation form
Browse files Browse the repository at this point in the history
  • Loading branch information
madnihamza1841 authored Oct 29, 2021
1 parent 055936a commit 329360e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ def get_credentials_site_configuration(request_data):
oauth2_clients = request_data.get('oauth2_clients', {})
credentials_sso_values = oauth2_clients.get('credentials-sso', {})
credentials_backend_values = oauth2_clients.get('credentials-backend', {})
language_code = request_data.get('language_code', 'en')

return {
'DJANGO_SETTINGS_OVERRIDE': {
Expand All @@ -56,5 +57,6 @@ def get_credentials_site_configuration(request_data):
'BACKEND_SERVICE_EDX_OAUTH2_PROVIDER_URL': '{lms_site_with_protocol}/oauth2'.format(
lms_site_with_protocol=lms_site_with_protocol
),
'LANGUAGE_CODE': language_code,
}
}

0 comments on commit 329360e

Please sign in to comment.