custom content logic

This commit is contained in:
zandercymatics 2024-07-01 09:56:09 -06:00
parent 1cbd9234be
commit b6a70e6d3c
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
3 changed files with 15 additions and 7 deletions

View file

@ -1948,7 +1948,11 @@ class DomainRequestAdmin(ListHeaderAdmin, ImportExportModelAdmin):
}
# Get the email body
template_path = f"emails/action_needed_reasons/{action_needed_reason}.txt"
if not custom_text:
template_path = f"emails/action_needed_reasons/{action_needed_reason}.txt"
else:
template_path = f"emails/action_needed_reasons/custom_email.txt"
template = get_template(template_path)
# Get the email subject