This commit is contained in:
zandercymatics 2024-07-15 11:42:05 -06:00
parent b68fe55584
commit c2d8c0eadb
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
2 changed files with 1 additions and 2 deletions

View file

@ -624,7 +624,6 @@ class DomainRequest(TimeStampedModel):
was_already_action_needed = self._cached_status == self.DomainRequestStatus.ACTION_NEEDED was_already_action_needed = self._cached_status == self.DomainRequestStatus.ACTION_NEEDED
reason_exists = self._cached_action_needed_reason is not None and self.action_needed_reason is not None reason_exists = self._cached_action_needed_reason is not None and self.action_needed_reason is not None
reason_changed = self._cached_action_needed_reason != self.action_needed_reason reason_changed = self._cached_action_needed_reason != self.action_needed_reason
print(f"was_already_action_needed {was_already_action_needed} reason_exists {reason_exists} and {reason_changed}")
if was_already_action_needed and reason_exists and reason_changed: if was_already_action_needed and reason_exists and reason_changed:
# We don't send emails out in state "other" # We don't send emails out in state "other"
if self.action_needed_reason != self.ActionNeededReasons.OTHER: if self.action_needed_reason != self.ActionNeededReasons.OTHER:

View file

@ -1519,7 +1519,7 @@ class TestDomainRequestAdmin(MockEppLib):
self.transition_state_and_send_email( self.transition_state_and_send_email(
domain_request, domain_request,
action_needed, action_needed,
action_needed_reason=questionable_so, action_needed_reason=eligibility_unclear,
action_needed_reason_email="custom content when starting anew", action_needed_reason_email="custom content when starting anew",
) )
self.assert_email_is_accurate("custom content when starting anew", 5, EMAIL, bcc_email_address=BCC_EMAIL) self.assert_email_is_accurate("custom content when starting anew", 5, EMAIL, bcc_email_address=BCC_EMAIL)