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
3 changes: 3 additions & 0 deletions openedx/core/djangoapps/user_authn/views/registration_form.py
Original file line number Diff line number Diff line change
Expand Up @@ -679,6 +679,9 @@ def _add_custom_field(self, form_desc, required=True, **kwargs):
field_name (str): Name used to get field information when creating it.
"""
field_name = kwargs.pop("field_name")
if field_name in getattr(settings, "EDNX_IGNORE_REGISTER_FIELDS", []):
return

custom_field_dict = self._get_custom_field_dict(field_name)
if not custom_field_dict:
log.error("Field with name {} must have a definition dictionary.".format(field_name))
Expand Down