mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-30 06:26:34 +02:00
linter and bug fix
This commit is contained in:
parent
8832f7cb9c
commit
4cd0747af1
4 changed files with 18 additions and 12 deletions
|
@ -3096,15 +3096,17 @@ class DomainRequestAdmin(ListHeaderAdmin, ImportExportRegistrarModelAdmin):
|
|||
# Hide FEB fields behind the organization requests flag
|
||||
# and only show them if the portfolio is executive
|
||||
if not (obj and obj.portfolio and obj.portfolio.federal_type == BranchChoices.EXECUTIVE):
|
||||
excluded_fields.extend([
|
||||
"feb_naming_requirements_details",
|
||||
"feb_purpose_choice",
|
||||
"time_frame_details",
|
||||
"interagency_initiative_details",
|
||||
"eop_stakeholder_first_name",
|
||||
"eop_stakeholder_last_name",
|
||||
"eop_stakeholder_email",
|
||||
])
|
||||
excluded_fields.extend(
|
||||
[
|
||||
"feb_naming_requirements_details",
|
||||
"feb_purpose_choice",
|
||||
"time_frame_details",
|
||||
"interagency_initiative_details",
|
||||
"eop_stakeholder_first_name",
|
||||
"eop_stakeholder_last_name",
|
||||
"eop_stakeholder_email",
|
||||
]
|
||||
)
|
||||
# This makes .gov domain collapsable underneath Requested By
|
||||
fieldsets[2][1]["classes"] = ["collapse--dgfieldset"]
|
||||
modified_fieldsets = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue