mirror of
https://github.com/Tivix/django-rest-auth.git
synced 2024-11-25 10:33:45 +03:00
Merge pull request #256 from briva/patch-1
Return ID user on /rest-auth/user/
This commit is contained in:
commit
e662736e4a
|
@ -126,7 +126,7 @@ class UserDetailsSerializer(serializers.ModelSerializer):
|
|||
"""
|
||||
class Meta:
|
||||
model = UserModel
|
||||
fields = ('username', 'email', 'first_name', 'last_name')
|
||||
fields = ('id', 'username', 'email', 'first_name', 'last_name')
|
||||
read_only_fields = ('email', )
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user