mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-12 14:08:28 +02:00
Further cleanup
This commit is contained in:
parent
9733fde689
commit
5f0b342986
2 changed files with 15 additions and 14 deletions
|
@ -121,6 +121,14 @@ class Portfolio(TimeStampedModel):
|
|||
def __str__(self) -> str:
|
||||
return str(self.organization_name)
|
||||
|
||||
@property
|
||||
def portfolio_type(self):
|
||||
org_type = self.OrganizationChoices.get_org_label(self.organization_type)
|
||||
if self.organization_type == self.OrganizationChoices.FEDERAL and self.federal_agency:
|
||||
return " - ".join([org_type, self.federal_agency.agency])
|
||||
else:
|
||||
return org_type
|
||||
|
||||
# == Getters for domains == #
|
||||
def get_domains(self):
|
||||
"""Returns all DomainInformations associated with this portfolio"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue