This commit is contained in:
zandercymatics 2024-06-04 12:56:47 -06:00
parent 245150ad32
commit d120f31581
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
4 changed files with 7 additions and 7 deletions

View file

@ -765,7 +765,7 @@ class DomainRequest(TimeStampedModel):
# Assumes that the template name matches the action needed reason if nothing is specified.
# This is so you can override if you need, or have this taken care of for you.
if not email_template_name and not email_template_subject_name:
reason = self.action_needed_reason.value
reason = self.action_needed_reason
email_template_name = f"{reason}.txt"
email_template_subject_name = f"{reason}_subject.txt"