'Get a dictionary mapping registration field names to default values.'

def get_registration_fields(self, response):

    field_mapping = self.field_mappings
    registration_fields = {edx_name: response['d'].get(odata_name, '') for (odata_name, edx_name) in field_mapping.items()}
    value_mapping = self.value_mappings
    for (field, value) in registration_fields.items():
        if ((field in value_mapping) and (value in value_mapping[field])):
            registration_fields[field] = value_mapping[field][value]
    return registration_fields
