From 614054bf10f02a9a674afbcf4b9b3c0777a80b8b Mon Sep 17 00:00:00 2001 From: Attiya Ishaque Date: Thu, 25 Aug 2022 16:58:00 +0500 Subject: [PATCH] fix: [VAN-1038] city field value is saved for optional fields. (#30897) --- openedx/core/djangoapps/user_api/accounts/serializers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openedx/core/djangoapps/user_api/accounts/serializers.py b/openedx/core/djangoapps/user_api/accounts/serializers.py index c416fdd5f7..75ecfa35bf 100644 --- a/openedx/core/djangoapps/user_api/accounts/serializers.py +++ b/openedx/core/djangoapps/user_api/accounts/serializers.py @@ -289,7 +289,7 @@ class AccountLegacyProfileSerializer(serializers.HyperlinkedModelSerializer, Rea fields = ( "name", "gender", "goals", "year_of_birth", "level_of_education", "country", "state", "social_links", "mailing_address", "bio", "profile_image", "requires_parental_consent", "language_proficiencies", - "phone_number" + "phone_number", "city" ) # Currently no read-only field, but keep this so view code doesn't need to know. read_only_fields = ()