From 37abea2c01a93abe50609268d742308064fef138 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Mon, 25 May 2020 16:26:56 +0100 Subject: linked stakeholder to user --- ctrack/users/admin.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'ctrack/users/admin.py') 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"] -- cgit v1.2.3