Remove unused portfolio_type (thanks, Linter!)

This commit is contained in:
zandercymatics 2024-09-26 11:43:40 -06:00
parent e1ed5a5ed5
commit 73264cce96
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7

View file

@ -2968,7 +2968,6 @@ class PortfolioAdmin(ListHeaderAdmin):
"domains",
"domain_requests",
"suborganizations",
"portfolio_type",
"display_admins",
"display_members",
"creator",
@ -3029,12 +3028,6 @@ class PortfolioAdmin(ListHeaderAdmin):
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):
"""Returns a list of links for each related suborg"""
queryset = obj.get_suborganizations()