Skip to content
Snippets Groups Projects
Commit 92fd2de1 authored by Bastien Abadie's avatar Bastien Abadie
Browse files

Merge branch 'serializer-token' into 'master'

Add API token to UserSerializer

See merge request !135
parents a11ed3b6 a73bb7b6
No related branches found
No related tags found
1 merge request!135Add API token to UserSerializer
......@@ -33,12 +33,14 @@ class UserSerializer(serializers.ModelSerializer):
'email',
'password',
'is_admin',
'auth_token',
)
extra_kwargs = {
'id': {'read_only': True},
'email': {'read_only': True},
'password': {'write_only': True},
'is_admin': {'read_only': True},
'auth_token': {'read_only': True},
}
def update(self, instance, validated_data):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment