mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-17 01:57:03 +02:00
custom content logic
This commit is contained in:
parent
1cbd9234be
commit
b6a70e6d3c
3 changed files with 15 additions and 7 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue