From 3ba5b2f757a09e0779bfe4bd8919f39fc7f062a4 Mon Sep 17 00:00:00 2001 From: Anna Makarudze Date: Thu, 16 Mar 2023 15:35:50 +0200 Subject: [PATCH] Hardcode year in renewal subject, add line break before signature --- globalpartners/emails.py | 3 +-- templates/emails/globalpartners/promotional_material.html | 2 +- templates/emails/globalpartners/prospective_sponsor.html | 2 +- templates/emails/globalpartners/renewal_email.html | 4 +--- templates/emails/globalpartners/thank_you.html | 2 +- 5 files changed, 5 insertions(+), 8 deletions(-) diff --git a/globalpartners/emails.py b/globalpartners/emails.py index 18f36772c..2e64d0837 100644 --- a/globalpartners/emails.py +++ b/globalpartners/emails.py @@ -8,7 +8,6 @@ def send_sponsor_email(contact_person, contact_email, template, subject, errors=None): - content = render_to_string(template, {"contact_person": contact_person, "errors": errors}) send_email(content, subject, [contact_email]) @@ -26,7 +25,7 @@ def send_renewal_email(contact_person, contact_email): """Sends annual sponsors email asking if they are interested in supporting our work in the new year. """ - subject = f"Will you be supporting us again in {year}?" + subject = "Will you be supporting us again in 2023?" template = "emails/globalpartners/renewal_email.html" send_sponsor_email(contact_person, contact_email, template, subject) diff --git a/templates/emails/globalpartners/promotional_material.html b/templates/emails/globalpartners/promotional_material.html index 5efdf9742..9a182f2c8 100644 --- a/templates/emails/globalpartners/promotional_material.html +++ b/templates/emails/globalpartners/promotional_material.html @@ -17,7 +17,7 @@ {% endif %}

Once again, thank you for supporting our work.

- +

Sparkles, cupcakes and high-fives, 🎉🎊🎉✨🍰👋

Anna Makarudze
diff --git a/templates/emails/globalpartners/prospective_sponsor.html b/templates/emails/globalpartners/prospective_sponsor.html index ce59795f7..6234c84cd 100644 --- a/templates/emails/globalpartners/prospective_sponsor.html +++ b/templates/emails/globalpartners/prospective_sponsor.html @@ -14,7 +14,7 @@ if you would like to get on a call for more details.

Looking forward to hearing from you soon.

- +

Sparkles, cupcakes and high-fives, 🎉🎊🎉✨🍰👋

diff --git a/templates/emails/globalpartners/renewal_email.html b/templates/emails/globalpartners/renewal_email.html index e03743af7..276a57c59 100644 --- a/templates/emails/globalpartners/renewal_email.html +++ b/templates/emails/globalpartners/renewal_email.html @@ -1,8 +1,6 @@

Hello {{ contact_person.split.0 }},

-

Happy New Year!

-

We would like to thank you for your past support, we are so grateful that you chose to help Django Girls on our mission to inspire women to fall in love with programming.

@@ -20,7 +18,7 @@ by introducing a part-time paid Communications Officer role to help promote our work.

Thank you once again for supporting our work. We look forward to working with you again in 2023.

- +

Sparkles, cupcakes and high-fives, 🎉🎊🎉✨🍰👋

Anna Makarudze
diff --git a/templates/emails/globalpartners/thank_you.html b/templates/emails/globalpartners/thank_you.html index 335f73ac2..7a2843c71 100644 --- a/templates/emails/globalpartners/thank_you.html +++ b/templates/emails/globalpartners/thank_you.html @@ -5,7 +5,7 @@ in the new year.

Happy holidays from all of us at Django Girls!

- +

Sparkles, cupcakes and high-fives, 🎉🎊🎉✨🍰👋

Anna Makarudze