diff --git a/gestion/admin.py b/gestion/admin.py index 482fce6..7b082ab 100644 --- a/gestion/admin.py +++ b/gestion/admin.py @@ -28,6 +28,10 @@ class UserProfileAdmin(UserAdmin): ordering = ('username',) search_fields = ('username', 'first_name', 'last_name', 'profile__phone', 'profile__instru',) inlines = [ UserProfileInline, ] + fieldsets = (('Général', { 'fields': ('username', 'first_name', 'last_name', ) }), + ('Permissions', {'fields': ('is_active', 'is_staff', 'is_superuser' )}) +) + admin.site.unregister(User) admin.site.unregister(Group)