From e91eac0c667c74062672a1a2cdb7da2a910f8cf7 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Sun, 23 Jun 2019 22:44:57 +1000 Subject: [PATCH] Include PK in user serializer --- InvenTree/users/serializers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/InvenTree/users/serializers.py b/InvenTree/users/serializers.py index 01ce8f44b3..13aadb24b1 100644 --- a/InvenTree/users/serializers.py +++ b/InvenTree/users/serializers.py @@ -8,7 +8,8 @@ class UserSerializer(serializers.HyperlinkedModelSerializer): class Meta: model = User - fields = ('username', + fields = ('pk', + 'username', 'first_name', 'last_name', 'email',)