Skip to content

Commit

Permalink
fix: test with pr suggestion
Browse files Browse the repository at this point in the history
Co-authored-by: Andrey Cañon <[email protected]>
  • Loading branch information
johanseto and andrey-canon committed Jan 26, 2024
1 parent 5ad0e35 commit 4d24257
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions openedx/core/djangoapps/user_api/accounts/settings_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,12 +272,14 @@ def _get_extended_profile_fields():
"specialty": _("Specialty")
}
request = theming_helpers.get_current_request()
extended_profile_fields_translations = configuration_helpers.get_value(
'extended_profile_fields_translations',
{},
)
translations = extended_profile_fields_translations.get(request.LANGUAGE_CODE, {})
field_labels_map.update(translations)

if request:
extended_profile_fields_translations = configuration_helpers.get_value(
'extended_profile_fields_translations',
{},
)
translations = extended_profile_fields_translations.get(request.LANGUAGE_CODE, {})
field_labels_map.update(translations)

extended_profile_field_names = configuration_helpers.get_value('extended_profile_fields', [])
for field_to_exclude in fields_already_showing:
Expand Down

0 comments on commit 4d24257

Please sign in to comment.