Skip to content
Snippets Groups Projects
Commit 351be5b6 authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

Add id to the UserSerializer fields

parent d6a28ffa
No related branches found
No related tags found
No related merge requests found
...@@ -36,7 +36,7 @@ class UserSerializer(serializers.ModelSerializer): ...@@ -36,7 +36,7 @@ class UserSerializer(serializers.ModelSerializer):
class Meta: class Meta:
model = User model = User
fields = ('username', 'first_name', 'last_name', 'email', 'is_staff', 'is_active', 'password', 'profile') fields = ('id', 'username', 'first_name', 'last_name', 'email', 'is_staff', 'is_active', 'password', 'profile')
def create(self, validated_data): def create(self, validated_data):
""" """
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment