mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-17 01:57:03 +02:00
Made contact e-mail read-only for analysts. Updated title of User admin page to "User Profile"
This commit is contained in:
parent
3bff5d5deb
commit
cc7f698ddf
1 changed files with 3 additions and 2 deletions
|
@ -645,7 +645,7 @@ class MyUserAdmin(BaseUserAdmin, ImportExportModelAdmin):
|
|||
None,
|
||||
{"fields": ("username", "password", "status", "verification_type")},
|
||||
),
|
||||
("Personal info", {"fields": ("first_name", "middle_name", "last_name", "title", "email", "phone")}),
|
||||
("User Profile", {"fields": ("first_name", "middle_name", "last_name", "title", "email", "phone")}),
|
||||
(
|
||||
"Permissions",
|
||||
{
|
||||
|
@ -711,7 +711,7 @@ class MyUserAdmin(BaseUserAdmin, ImportExportModelAdmin):
|
|||
"groups",
|
||||
"Important dates",
|
||||
"last_login",
|
||||
"date_joined",
|
||||
"date_joined"
|
||||
]
|
||||
|
||||
list_filter = (
|
||||
|
@ -937,6 +937,7 @@ class ContactAdmin(ListHeaderAdmin, ImportExportModelAdmin):
|
|||
# Read only that we'll leverage for CISA Analysts
|
||||
analyst_readonly_fields = [
|
||||
"user",
|
||||
"e_mail",
|
||||
]
|
||||
|
||||
def get_readonly_fields(self, request, obj=None):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue