Merge pull request #1965 from cisagov/za/1909-change-org-field-to-new-format

Ticket #1909: Change organization field to support new format
This commit is contained in:
zandercymatics 2024-04-09 11:54:34 -06:00 committed by GitHub
commit 7cecd84fbd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 809 additions and 25 deletions

View file

@ -901,6 +901,7 @@ class DomainInformationAdmin(ListHeaderAdmin):
"fields": [
"generic_org_type",
"is_election_board",
"organization_type",
]
},
),
@ -943,7 +944,7 @@ class DomainInformationAdmin(ListHeaderAdmin):
]
# 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
analyst_readonly_fields = [
@ -1139,6 +1140,7 @@ class DomainRequestAdmin(ListHeaderAdmin):
"fields": [
"generic_org_type",
"is_election_board",
"organization_type",
]
},
),
@ -1181,7 +1183,13 @@ class DomainRequestAdmin(ListHeaderAdmin):
]
# 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
analyst_readonly_fields = [