aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/users/admin.py
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2020-05-25 16:26:56 +0100
committerMatthew Lemon <lemon@matthewlemon.com>2020-05-25 16:26:56 +0100
commit37abea2c01a93abe50609268d742308064fef138 (patch)
treeb498de9e3972b0ba5c5248f0390b4a6d4e99baad /ctrack/users/admin.py
parent75cad4697874dc1e06f1758dd9915394f7287d63 (diff)
linked stakeholder to user
Diffstat (limited to '')
-rw-r--r--ctrack/users/admin.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/ctrack/users/admin.py b/ctrack/users/admin.py
index 120cc64..7e930d8 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
- list_display = ["username", "name", "is_superuser"]
+ fieldsets = (
+ ("User", {"fields": ("name", "stakeholder")}),
+ ) + auth_admin.UserAdmin.fieldsets
+ list_display = ["username", "name", "is_superuser", "stakeholder"]
search_fields = ["name"]