Merge pull request #256 from briva/patch-1

Return ID user on /rest-auth/user/
This commit is contained in:
Maxim Kukhtenkov 2016-10-17 10:26:22 -07:00 committed by GitHub
commit e662736e4a

View File

@ -126,7 +126,7 @@ class UserDetailsSerializer(serializers.ModelSerializer):
""" """
class Meta: class Meta:
model = UserModel model = UserModel
fields = ('username', 'email', 'first_name', 'last_name') fields = ('id', 'username', 'email', 'first_name', 'last_name')
read_only_fields = ('email', ) read_only_fields = ('email', )