Update admin.py

This commit is contained in:
zandercymatics 2024-04-08 10:06:52 -06:00
parent 88fe4858bc
commit 8ce51f5bd9
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7

View file

@ -884,6 +884,8 @@ class DomainInformationAdmin(ListHeaderAdmin):
"Type of organization", "Type of organization",
{ {
"fields": [ "fields": [
"generic_org_type",
"is_election_board",
"organization_type", "organization_type",
] ]
}, },
@ -927,7 +929,7 @@ class DomainInformationAdmin(ListHeaderAdmin):
] ]
# Readonly fields for analysts and superusers # Readonly fields for analysts and superusers
readonly_fields = ("other_contacts",) readonly_fields = ("other_contacts", "generic_org_type", "is_election_board")
# Read only that we'll leverage for CISA Analysts # Read only that we'll leverage for CISA Analysts
analyst_readonly_fields = [ analyst_readonly_fields = [
@ -1121,6 +1123,8 @@ class DomainRequestAdmin(ListHeaderAdmin):
"Type of organization", "Type of organization",
{ {
"fields": [ "fields": [
"generic_org_type",
"is_election_board",
"organization_type", "organization_type",
] ]
}, },
@ -1164,7 +1168,7 @@ class DomainRequestAdmin(ListHeaderAdmin):
] ]
# Readonly fields for analysts and superusers # Readonly fields for analysts and superusers
readonly_fields = ("other_contacts", "current_websites", "alternative_domains") readonly_fields = ("other_contacts", "current_websites", "alternative_domains", "generic_org_type", "is_election_board")
# Read only that we'll leverage for CISA Analysts # Read only that we'll leverage for CISA Analysts
analyst_readonly_fields = [ analyst_readonly_fields = [