From 508e57274fc91a34cd7705982d5ee7b5cd5673d2 Mon Sep 17 00:00:00 2001 From: Drew Larson Date: Tue, 23 May 2017 19:24:30 -0600 Subject: [PATCH] Add field. (#55) --- 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 = (