Skip to content
This repository was archived by the owner on Sep 19, 2018. It is now read-only.

Commit f4e12d6

Browse files
committed
added lines, updated email text
1 parent b3612ee commit f4e12d6

File tree

4 files changed

+4
-9
lines changed

4 files changed

+4
-9
lines changed

mailer/event_report_mailer.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,9 @@ def send_event_report_email (user, event):
1414

1515
txt_content = template.render(context)
1616

17-
send_mail('New event needs your attention', txt_content, "[email protected]", [user.email])
17+
send_mail('A new event on codeweek.eu needs your attention', txt_content, "[email protected]", [user.email])
1818

1919
def send_email_to_country_ambassadors(event):
2020
ambassadors = get_ambassadors_for_country(event.country)
2121
for user in ambassadors:
2222
send_event_report_email(user, event)
23-
24-
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
Hello, {{user.first_name}}!
22

3-
New event {{ event.title }} has been added to the codeweek.eu site and it needs your revision. Could you be kind enough to check if everything is ok and approve it, otherwise request an update.
4-
3+
A new event {{ event.title }} has been added to the codeweek.eu site and it needs your revision. Would you be kind enough to check if everything is ok and approve it, or otherwise request an update: http://events.codeweek.eu{% url 'web.view_event' event.id event.slug %}
54

65
Thank you for your help!
76

8-
Codeweek.eu Team
7+
Codeweek.eu Team

mailer/tests.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
from django.core import mail
1010

11-
# Create your tests here.
1211

1312
class EmailTestCase(TestCase):
1413
def setUp(self):
@@ -34,7 +33,7 @@ def test_send_event_email(self):
3433
send_event_report_email(self.u1, self.event)
3534
email = mail.outbox[0]
3635

37-
self.assertEquals('New event needs your attention', email.subject)
36+
self.assertEquals('A new event on codeweek.eu needs your attention', email.subject)
3837
self.assertEquals('[email protected]', email.from_email)
3938
self.assertEquals([self.u1.email], email.to)
4039
self.assertIn(self.u1.first_name, email.body)

web/tests/test_user_processors.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,3 @@ def test_get_ambassadors_for_country(self):
3939

4040
self.assertItemsEqual ([self.u1], get_ambassadors_for_country("SI"))
4141
self.assertItemsEqual ([], get_ambassadors_for_country("FR"))
42-

0 commit comments

Comments
 (0)