From 55632aa5e3e37460438ea1fa76c6878e4451f88f Mon Sep 17 00:00:00 2001 From: Wesley Bomar Date: Wed, 10 Jul 2024 17:03:06 -0500 Subject: [PATCH 1/2] feat: CMD-112 `form_name` in custom email message --- common_apps/email_management/apps.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/common_apps/email_management/apps.py b/common_apps/email_management/apps.py index 9e0964ff8..03827487a 100644 --- a/common_apps/email_management/apps.py +++ b/common_apps/email_management/apps.py @@ -22,7 +22,11 @@ def send_confirmation_email(form_name, form_data): def replace_word_in_file(email_content): - modified_content = email_content.replace('{site_name}', f'{site_name}') + modified_content = email_content.replace( + '{site_name}', f'{site_name}' + ).replace( + '{form_name}', f'{form_name}' + ) return modified_content text_body = replace_word_in_file(CONF_EMAIL_TEXT) From 43a7a9e1fd0add7f20a5ec12f827eb3ee2aabf91 Mon Sep 17 00:00:00 2001 From: Wesley Bomar Date: Wed, 10 Jul 2024 17:04:17 -0500 Subject: [PATCH 2/2] style: remove extra new line --- common_apps/email_management/apps.py | 1 - 1 file changed, 1 deletion(-) diff --git a/common_apps/email_management/apps.py b/common_apps/email_management/apps.py index 03827487a..b756493bb 100644 --- a/common_apps/email_management/apps.py +++ b/common_apps/email_management/apps.py @@ -21,7 +21,6 @@ def send_confirmation_email(form_name, form_data): site_name = current_site.name def replace_word_in_file(email_content): - modified_content = email_content.replace( '{site_name}', f'{site_name}' ).replace(