Rework readonly fields for analysts + hide when org flag is off

This commit is contained in:
zandercymatics 2024-11-01 09:10:28 -06:00
parent 83720c359f
commit b05a62ecd1
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
2 changed files with 17 additions and 14 deletions

View file

@ -1135,7 +1135,8 @@ class DomainRequest(TimeStampedModel):
return False
def requesting_entity_is_suborganization(self) -> bool:
"""Used to determine if this domain request is also requesting that it be tied to a suborganization.
"""Determines if this record is also requesting that it be tied to a suborganization.
Used for the RequestingEntity page.
Returns True if portfolio exists and either sub_organization exists,
or if is_requesting_new_suborganization() is true.
Returns False otherwise.
@ -1145,8 +1146,9 @@ class DomainRequest(TimeStampedModel):
return False
def is_requesting_new_suborganization(self) -> bool:
"""Used on the requesting entity form to determine if a user is trying to request
"""Determines if a user is trying to request
a new suborganization using the domain request form, rather than one that already exists.
Used for the RequestingEntity page.
Returns True if a sub_organization does not exist and if requested_suborganization,
suborganization_city, and suborganization_state_territory all exist.