Include PK in user serializer

This commit is contained in:
Oliver Walters 2019-06-23 22:44:57 +10:00
parent cb41236738
commit e91eac0c66

View File

@ -8,7 +8,8 @@ class UserSerializer(serializers.HyperlinkedModelSerializer):
class Meta:
model = User
fields = ('username',
fields = ('pk',
'username',
'first_name',
'last_name',
'email',)