Fakultas Ilmu Komputer UI

Verified Commit 4560c7df authored by Giovan Isa Musthofa's avatar Giovan Isa Musthofa
Browse files

[CHORES] Fix style error on UserProfileSerializer

parent 6c66f5d8
Pipeline #38495 passed with stages
in 3 minutes and 27 seconds
......@@ -122,9 +122,9 @@ class UserProfileSerializer(ModelSerializer):
# Handle nested instance
profile = instance.profile
for field in ('body_weight', 'id_card_no', 'birthplace', 'birthdate', 'sex',
'profession', 'blood_type', 'married_status', 'address',
'city', 'district', 'village', 'phone_no', 'work_address',
'work_email', 'work_phone_no'):
'profession', 'blood_type', 'married_status', 'address',
'city', 'district', 'village', 'phone_no', 'work_address',
'work_email', 'work_phone_no'):
value = profile_data.get(field, getattr(profile, field))
setattr(profile, field, value)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment