diff options
author | Matthew Lemon <lemon@matthewlemon.com> | 2020-05-22 16:29:35 +0100 |
---|---|---|
committer | Matthew Lemon <lemon@matthewlemon.com> | 2020-05-22 16:29:35 +0100 |
commit | 4d3eb4c4c7aff7d2837476cbc7ee524b3f5c2424 (patch) | |
tree | 2c9fe169e6500b361602fdf689789a71e448288e /ctrack/users/admin.py | |
parent | 5d489ef3685b32ee5e9c68839b1e187870c0d659 (diff) |
changed boolean field on user model
Diffstat (limited to 'ctrack/users/admin.py')
-rw-r--r-- | ctrack/users/admin.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ctrack/users/admin.py b/ctrack/users/admin.py index 120cc64..28e91eb 100644 --- a/ctrack/users/admin.py +++ b/ctrack/users/admin.py @@ -12,6 +12,8 @@ class UserAdmin(auth_admin.UserAdmin): form = UserChangeForm add_form = UserCreationForm - fieldsets = (("User", {"fields": ("name",)}),) + auth_admin.UserAdmin.fieldsets + fieldsets = ( + ("User", {"fields": ("name", "oes_user")}), + ) + auth_admin.UserAdmin.fieldsets list_display = ["username", "name", "is_superuser"] search_fields = ["name"] |