Changement administration
This commit is contained in:
parent
36ad5db982
commit
16b75820b3
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue