mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-28 13:36:30 +02:00
Remove unused portfolio_type (thanks, Linter!)
This commit is contained in:
parent
e1ed5a5ed5
commit
73264cce96
1 changed files with 0 additions and 7 deletions
|
@ -2968,7 +2968,6 @@ class PortfolioAdmin(ListHeaderAdmin):
|
||||||
"domains",
|
"domains",
|
||||||
"domain_requests",
|
"domain_requests",
|
||||||
"suborganizations",
|
"suborganizations",
|
||||||
"portfolio_type",
|
|
||||||
"display_admins",
|
"display_admins",
|
||||||
"display_members",
|
"display_members",
|
||||||
"creator",
|
"creator",
|
||||||
|
@ -3029,12 +3028,6 @@ class PortfolioAdmin(ListHeaderAdmin):
|
||||||
|
|
||||||
created_on.short_description = "Created on" # type: ignore
|
created_on.short_description = "Created on" # type: ignore
|
||||||
|
|
||||||
def portfolio_type(self, obj: models.Portfolio):
|
|
||||||
"""Returns the portfolio type, or "-" if the result is empty"""
|
|
||||||
return obj.portfolio_type if obj.portfolio_type else "-"
|
|
||||||
|
|
||||||
portfolio_type.short_description = "Portfolio type" # type: ignore
|
|
||||||
|
|
||||||
def suborganizations(self, obj: models.Portfolio):
|
def suborganizations(self, obj: models.Portfolio):
|
||||||
"""Returns a list of links for each related suborg"""
|
"""Returns a list of links for each related suborg"""
|
||||||
queryset = obj.get_suborganizations()
|
queryset = obj.get_suborganizations()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue