Skip to content

Commit

Permalink
Returning user id for update form in front end
Browse files Browse the repository at this point in the history
  • Loading branch information
rosiejeays committed Sep 19, 2023
1 parent 31a4480 commit eb0ac81
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crowdfunding/users/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ def update(self,instance,validated_data):

def get_restricted_data(self):
return {
'id': self.id,
'username': self.username,
'first_name': self.first_name,
'last_name': self.last_name,
Expand Down

0 comments on commit eb0ac81

Please sign in to comment.