fix: [VAN-1038] city field value is saved for optional fields. (#30897)

This commit is contained in:
Attiya Ishaque
2022-08-25 16:58:00 +05:00
committed by GitHub
parent c2326f0399
commit 614054bf10

View File

@@ -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 = ()