mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-28 13:36:30 +02:00
cleanup
This commit is contained in:
parent
e20bfa5567
commit
79fbc5c540
1 changed files with 3 additions and 9 deletions
|
@ -2943,11 +2943,6 @@ class PortfolioAdmin(ListHeaderAdmin):
|
||||||
# created_on is the created_at field, and portfolio_type is f"{organization_type} - {federal_type}"
|
# created_on is the created_at field, and portfolio_type is f"{organization_type} - {federal_type}"
|
||||||
(None, {"fields": ["portfolio_type", "organization_name", "creator", "created_on", "notes"]}),
|
(None, {"fields": ["portfolio_type", "organization_name", "creator", "created_on", "notes"]}),
|
||||||
("Portfolio members", {"fields": ["display_admins", "display_members"]}),
|
("Portfolio members", {"fields": ["display_admins", "display_members"]}),
|
||||||
# TODO - uncomment in #2521
|
|
||||||
# ("Portfolio members", {
|
|
||||||
# "classes": ("collapse", "closed"),
|
|
||||||
# "fields": ["administrators", "members"]}
|
|
||||||
# ),
|
|
||||||
("Portfolio domains", {"fields": ["domains", "domain_requests"]}),
|
("Portfolio domains", {"fields": ["domains", "domain_requests"]}),
|
||||||
("Type of organization", {"fields": ["organization_type", "federal_type"]}),
|
("Type of organization", {"fields": ["organization_type", "federal_type"]}),
|
||||||
(
|
(
|
||||||
|
@ -2995,15 +2990,14 @@ class PortfolioAdmin(ListHeaderAdmin):
|
||||||
readonly_fields = [
|
readonly_fields = [
|
||||||
# This is the created_at field
|
# This is the created_at field
|
||||||
"created_on",
|
"created_on",
|
||||||
# Custom fields such as these must be defined as readonly.
|
# Django admin doesn't allow methods to be directly listed in fieldsets. We can
|
||||||
|
# display the custom methods display_admins amd display_members in the admin form if
|
||||||
|
# they are readonly.
|
||||||
"federal_type",
|
"federal_type",
|
||||||
"domains",
|
"domains",
|
||||||
"domain_requests",
|
"domain_requests",
|
||||||
"suborganizations",
|
"suborganizations",
|
||||||
"portfolio_type",
|
"portfolio_type",
|
||||||
# Django admin doesn't allow methods to be directly listed in fieldsets. We can
|
|
||||||
# display the custom methods display_admins amd display_members in the admin form if
|
|
||||||
# they are readonly.
|
|
||||||
"display_admins",
|
"display_admins",
|
||||||
"display_members",
|
"display_members",
|
||||||
"creator",
|
"creator",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue