Commit d3b38ba6 authored by Bruno Martin's avatar Bruno Martin
Browse files

return is_staff variable to user serializer and add it to djago user admin

parent e1e2168d
......@@ -35,7 +35,7 @@ class MyUserAdmin(AuthUserAdmin):
fieldsets = (
('User Profile', {'fields': (
'name', 'city', 'state', 'country', 'race',
'gender', 'occupation', 'biography', 'image',
'gender', 'occupation', 'biography', 'image', 'accepted_terms',
) + AuthUserAdmin.fieldsets
list_display = ('id', 'username', 'name', 'email', 'is_superuser')
......@@ -22,7 +22,7 @@ class UserSerializer(serializers.HyperlinkedModelSerializer):
model = User
fields = ('id', 'image', 'name', 'email', 'biography', 'city',
'state', 'country', 'username', 'race', 'gender',
'occupation', 'is_superuser', )
'occupation', 'is_superuser', 'is_staff',)
class SimpleUserSerializer(serializers.ModelSerializer):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment