From 6070369306af97b746dbf9f4ec21c7d7cf6dc78b Mon Sep 17 00:00:00 2001 From: Drew Larson Date: Tue, 23 May 2017 19:06:02 -0600 Subject: [PATCH] Add field. --- bikeshop_project/registration/admin.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bikeshop_project/registration/admin.py b/bikeshop_project/registration/admin.py index 6fa3094..2e9d5dc 100644 --- a/bikeshop_project/registration/admin.py +++ b/bikeshop_project/registration/admin.py @@ -15,8 +15,7 @@ class CustomUserAdmin(UserAdmin): fieldsets = ( (None, {'fields': ('email', 'password')}), - ('Permissions', {'fields': ('is_active', 'is_superuser', - 'groups', 'user_permissions')}), + ('Permissions', {'fields': ('is_active', 'is_superuser', 'is_admin', 'groups', 'user_permissions')}), ('Important dates', {'fields': ('last_login',)}), ) add_fieldsets = (