jira-13 update country name

This commit is contained in:
jain
2023-06-27 19:32:57 +05:30
parent 0006208cf8
commit d208e5252c
6 changed files with 40 additions and 0 deletions

View File

@ -72,6 +72,7 @@ class CreateJuniorSerializer(serializers.ModelSerializer):
junior.guardian_code = validated_data.get('guardian_code', junior.guardian_code)
junior.dob = validated_data.get('dob',junior.dob)
junior.passcode = validated_data.get('passcode', junior.passcode)
junior.country_name = validated_data.get('country_name', junior.country_name)
"""Update country code and phone number"""
junior.phone = validated_data.get('phone', junior.phone)
junior.country_code = validated_data.get('country_code', junior.country_code)