mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-17 18:09:25 +02:00
updated tests
This commit is contained in:
parent
a9aa8b16ef
commit
5a896ac369
3 changed files with 28 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue