From 16b75820b31fcbc7b991291585e0b0c01f1fa531 Mon Sep 17 00:00:00 2001 From: R1kM Date: Sat, 28 Mar 2015 18:54:48 +0100 Subject: [PATCH] Changement administration --- gestion/admin.py | 4 ++++ 1 file changed, 4 insertions(+) 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)