mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-17 18:09:25 +02:00
cleanup
This commit is contained in:
parent
7a5eda065b
commit
cfa1879909
2 changed files with 6 additions and 9 deletions
|
@ -693,8 +693,8 @@ class DomainRequest(TimeStampedModel):
|
|||
|
||||
# We should never send an email if no reason was specified
|
||||
# Additionally, Don't send out emails for reasons that shouldn't send them
|
||||
if new_reason is None or self.action_needed_reason in excluded_reasons:
|
||||
return
|
||||
if new_reason is None or new_reason in excluded_reasons:
|
||||
return
|
||||
|
||||
# Only send out an email if the underlying email itself changed
|
||||
if old_reason != new_reason:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue