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

Add is_superuser to the UserSerializer fields

parent 351be5b6
No related branches found
No related tags found
No related merge requests found
......@@ -36,7 +36,8 @@ class UserSerializer(serializers.ModelSerializer):
class Meta:
model = User
fields = ('id', 'username', 'first_name', 'last_name', 'email', 'is_staff', 'is_active', 'password', 'profile')
fields = ('id', 'username', 'first_name', 'last_name', 'email', 'is_staff', 'is_active', 'is_superuser', 'password',
'profile')
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