Changement administration

This commit is contained in:
R1kM 2015-03-28 18:54:48 +01:00
parent 36ad5db982
commit 16b75820b3

View file

@ -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)