Merge pull request #26621 from cpennington/education-field-name

fix: Standardize the name of the education field in Segment
This commit is contained in:
Calen Pennington
2021-02-19 10:17:21 -05:00
committed by GitHub

View File

@@ -257,7 +257,7 @@ def email_marketing_user_fields_changed(
if 'country' in fields:
fields['country'] = str(fields['country'])
if 'level_of_education' in fields and fields['level_of_education']:
fields['level_of_education'] = dict(UserProfile.LEVEL_OF_EDUCATION_CHOICES)[fields['level_of_education']]
fields['education'] = dict(UserProfile.LEVEL_OF_EDUCATION_CHOICES)[fields['level_of_education']]
if 'year_of_birth' in fields:
fields['yearOfBirth'] = fields.pop('year_of_birth')
if 'mailing_address' in fields: