mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-17 18:09:25 +02:00
cleanup debug print statements
This commit is contained in:
parent
6fa76f3007
commit
420ced522e
2 changed files with 0 additions and 29 deletions
|
@ -554,24 +554,18 @@ class DomainRequest(TimeStampedModel):
|
|||
"""Some yes/no forms use a db field to track whether it was checked or not.
|
||||
We handle that here for def save().
|
||||
"""
|
||||
logger.debug("\033[91m .....syncing form...... \033[0m") # TODO-nl: delete me!
|
||||
# This ensures that if we have prefilled data, the form is prepopulated
|
||||
if self.cisa_representative_first_name is not None or self.cisa_representative_last_name is not None:
|
||||
logger.debug("\033[91m --> NO NONES \033[0m") # TODO-nl: delete me!
|
||||
self.has_cisa_representative = (
|
||||
self.cisa_representative_first_name != "" and self.cisa_representative_last_name != ""
|
||||
)
|
||||
|
||||
# This check is required to ensure that the form doesn't start out checked
|
||||
if self.has_cisa_representative is not None:
|
||||
logger.debug("\033[91m --> cisa_rep is not none \033[0m") # TODO-nl: delete me!
|
||||
self.has_cisa_representative = (
|
||||
self.cisa_representative_first_name != "" and self.cisa_representative_first_name is not None
|
||||
) and (self.cisa_representative_last_name != "" and self.cisa_representative_last_name is not None)
|
||||
|
||||
logger.debug("\033[91m") # TODO-nl: delete me!
|
||||
logger.debug(f" --> has_cisa_rep is = {self.has_cisa_representative}!") # TODO-nl: delete me!
|
||||
logger.debug("\033[0m") # TODO-nl: delete me!
|
||||
# This ensures that if we have prefilled data, the form is prepopulated
|
||||
if self.anything_else is not None:
|
||||
self.has_anything_else_text = self.anything_else != ""
|
||||
|
@ -931,17 +925,6 @@ class DomainRequest(TimeStampedModel):
|
|||
|
||||
if self.has_anything_else_text is None or self.has_cisa_representative is None:
|
||||
has_details = False
|
||||
|
||||
logger.debug("\033[91m ******** Has additional ********") # TODO-nl: delete me!
|
||||
logger.debug(
|
||||
f"""VALUE: {has_details}
|
||||
|
||||
DETAILS:
|
||||
has_anything_else_text = {self.has_anything_else_text}
|
||||
has_cisa_representative = {self.has_cisa_representative}"""
|
||||
) # TODO-nl: delete me!
|
||||
logger.debug("\033[91m ****************") # TODO-nl: delete me!
|
||||
|
||||
return has_details
|
||||
|
||||
def is_federal(self) -> Union[bool, None]:
|
||||
|
@ -1053,14 +1036,6 @@ class DomainRequest(TimeStampedModel):
|
|||
def _cisa_rep_check(self):
|
||||
# Either does not have a CISA rep, OR has a CISA rep + both first name
|
||||
# and last name are NOT empty and are NOT an empty string
|
||||
logger.debug("\033[91m ******** CISA REP CHECK 2 ********") # TODO-nl: delete me!
|
||||
logger.debug(
|
||||
f"""values:
|
||||
has_cisa_representative = {self.has_cisa_representative}
|
||||
cisa_representative_first_name = {self.cisa_representative_first_name}
|
||||
cisa_representative_last_name = {self.cisa_representative_last_name}"""
|
||||
) # TODO-nl: delete me!
|
||||
logger.debug("\033[0m") # TODO-nl: delete me!
|
||||
to_return = (
|
||||
self.has_cisa_representative is True
|
||||
and self.cisa_representative_first_name is not None
|
||||
|
@ -1069,7 +1044,6 @@ class DomainRequest(TimeStampedModel):
|
|||
and self.cisa_representative_last_name != ""
|
||||
) or self.has_cisa_representative is False
|
||||
|
||||
logger.debug(f"RETURNING: {to_return}") # TODO-nl: delete me!
|
||||
return to_return
|
||||
|
||||
def _anything_else_radio_button_and_text_field_check(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue