Return ID user on /rest-auth/user/

This commit is contained in:
Le Pogam Brivael 2016-09-05 12:44:17 +02:00 committed by GitHub
parent 3b80fcbca9
commit f793447bae

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', )