mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-17 18:09:25 +02:00
initial form
This commit is contained in:
parent
a1d9904176
commit
e04337f94c
4 changed files with 94 additions and 7 deletions
|
@ -1173,6 +1173,16 @@ class DomainRequest(TimeStampedModel):
|
|||
return True
|
||||
return False
|
||||
|
||||
def is_suborganization(self) -> bool:
|
||||
if self.portfolio:
|
||||
if self.sub_organization:
|
||||
return True
|
||||
|
||||
if self.organization_name != self.portfolio.organization_name:
|
||||
return True
|
||||
|
||||
return False
|
||||
|
||||
def to_dict(self):
|
||||
"""This is to process to_dict for Domain Information, making it friendly
|
||||
to "copy" it
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue