Skip to content

Commit

Permalink
Feature/#64 (#66)
Browse files Browse the repository at this point in the history
* Update serializers.py

* Feature/#64

* Update serializers.py
  • Loading branch information
mieseung authored Jan 8, 2021
1 parent 19af5c1 commit eb8abc3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion clone_linkedin/user/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ def update(self, userprofile, validated_data):
user.save()
userprofile.detail = validated_data.get('detail', userprofile.detail)
userprofile.region = validated_data.get('region', userprofile.region)
userprofile.image = validated_data.get('image', userprofile.image)
if validated_data.get('image')!= '':
userprofile.image = validated_data.get('image', userprofile.image)
userprofile.profile_created = validated_data.get('profile_created', False)
userprofile.contact = validated_data.get('contact', userprofile.contact)
userprofile.save()
Expand Down

0 comments on commit eb8abc3

Please sign in to comment.