From f49fe5fabd028b10a2a2bba6debfae82d11edff6 Mon Sep 17 00:00:00 2001 From: Ali Karbassi Date: Tue, 12 Jan 2021 17:22:04 -0600 Subject: [PATCH] Add contact form phone number to email template --- coderdojochi/emailtemplates/contact-email.html | 3 +++ weallcode/forms.py | 1 + 2 files changed, 4 insertions(+) diff --git a/coderdojochi/emailtemplates/contact-email.html b/coderdojochi/emailtemplates/contact-email.html index 882cb56b..07ce0f8b 100644 --- a/coderdojochi/emailtemplates/contact-email.html +++ b/coderdojochi/emailtemplates/contact-email.html @@ -1,2 +1,5 @@ {{interest}} +{{phone}} + {{message|linebreaks}} + diff --git a/weallcode/forms.py b/weallcode/forms.py index 85beb851..0893e1f4 100644 --- a/weallcode/forms.py +++ b/weallcode/forms.py @@ -94,5 +94,6 @@ def send_email(self): merge_global_data={ 'interest': data['interest'], 'message': data['message'], + 'phone': data['phone'], }, )