Skip to content

Commit

Permalink
Merge pull request #873 from amakarudze/partners
Browse files Browse the repository at this point in the history
Hardcode year in renewal subject, add line break before signature
  • Loading branch information
amakarudze authored Mar 16, 2023
2 parents 0290c7a + 3ba5b2f commit 39f7af2
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 8 deletions.
3 changes: 1 addition & 2 deletions globalpartners/emails.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand All @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion templates/emails/globalpartners/promotional_material.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
{% endif %}

<p>Once again, thank you for supporting our work.</p>

<br>
<p>Sparkles, cupcakes and high-fives, πŸŽ‰πŸŽŠπŸŽ‰βœ¨πŸ°πŸ‘‹</p>

<p>Anna Makarudze <br>
Expand Down
2 changes: 1 addition & 1 deletion templates/emails/globalpartners/prospective_sponsor.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
if you would like to get on a call for more details.</p>

<p>Looking forward to hearing from you soon.</p>

<br>
<p>Sparkles, cupcakes and high-fives, πŸŽ‰πŸŽŠπŸŽ‰βœ¨πŸ°πŸ‘‹</p>

<p>
Expand Down
4 changes: 1 addition & 3 deletions templates/emails/globalpartners/renewal_email.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<html>
<p>Hello {{ contact_person.split.0 }},</p>

<p>Happy New Year!</p>

<p>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.</p>

Expand All @@ -20,7 +18,7 @@
by introducing a part-time paid Communications Officer role to help promote our work.</p>

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

<br>
<p>Sparkles, cupcakes and high-fives, πŸŽ‰πŸŽŠπŸŽ‰βœ¨πŸ°πŸ‘‹</p>

<p>Anna Makarudze <br>
Expand Down
2 changes: 1 addition & 1 deletion templates/emails/globalpartners/thank_you.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
in the new year. </p>

<p>Happy holidays from all of us at Django Girls!</p>

<br>
<p>Sparkles, cupcakes and high-fives, πŸŽ‰πŸŽŠπŸŽ‰βœ¨πŸ°πŸ‘‹</p>

<p>Anna Makarudze <br>
Expand Down

0 comments on commit 39f7af2

Please sign in to comment.