updated tests

This commit is contained in:
asaki222 2024-10-24 17:18:53 -04:00
parent a9aa8b16ef
commit 5a896ac369
No known key found for this signature in database
GPG key ID: 2C4F802060E06EA4
3 changed files with 28 additions and 4 deletions

View file

@ -1333,18 +1333,16 @@ class DomainRequest(TimeStampedModel):
return False
return True
"""the following converted_ property methods get their respective field names from portfolio, if the domain request has a portfolio. if it does not, it will get the info from the model itself."""
@property
def converted_organization_name(self):
""" "returns the organization field if the domain request is in a portfolio
otherwise it returns the organization name from the domain request object itself"""
if self.portfolio:
return self.portfolio.organization_name
return self.organization_name
@property
def converted_generic_org_type(self):
""" "returns the organization type if the domain request is in a portfolio
otherwise it returns the organization type from the domain request object itself"""
if self.portfolio:
return self.portfolio.organization_type
return self.generic_org_type