Skip to content

Commit

Permalink
Add password field to UserDetail serializer (#139)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashesh3 committed May 23, 2023
1 parent 5323888 commit b1342bb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ayushma/serializers/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ class Meta:


class UserDetailSerializer(serializers.ModelSerializer):
password = serializers.CharField(write_only=True, required=False)

class Meta:
model = User
fields = (
Expand All @@ -35,6 +37,7 @@ class Meta:
"email",
"allow_key",
"is_staff",
"password",
)
read_only_fields = ("external_id", "email", "username", "allow_key", "is_staff")

Expand Down

0 comments on commit b1342bb

Please sign in to comment.