Skip to content

Commit

Permalink
hotfix: add id field to profile serializer
Browse files Browse the repository at this point in the history
  • Loading branch information
hikasap committed Dec 16, 2024
1 parent 32c31ce commit 1bd30ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/onboarding/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class ProfileSerializer(serializers.ModelSerializer):

class Meta:
model = Profile
fields = ['user', 'profile_picture', 'followers', 'following', 'bio', 'location']
fields = ['id', 'user', 'profile_picture', 'followers', 'following', 'bio', 'location']

def __init__(self, *args, **kwargs):
super(ProfileSerializer, self).__init__(*args, **kwargs)
Expand Down

0 comments on commit 1bd30ea

Please sign in to comment.