Skip to content

Commit 222d5c6

Browse files
Change email subject format
1 parent f665836 commit 222d5c6

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

flash_update/tasks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def share_flash_update(flash_update_share_id):
3535

3636
users_emails = set([*donors_emails, *donor_groups_emails])
3737
send_notification(
38-
f'Flash Update #{flash_update.id}',
38+
f'Flash Update :{flash_update.title}',
3939
users_emails,
4040
render_to_string('email/flash_update/donor_email.html', email_context),
4141
'Flash Update',
@@ -56,7 +56,7 @@ def send_flash_update_email(flash_update_id):
5656
).values_list('email', flat=True)
5757
if users_emails:
5858
send_notification(
59-
'Flash Update',
59+
f'Flash Update :{instance.title}',
6060
users_emails,
6161
render_to_string('email/flash_update/flash_update.html', email_context),
6262
'Flash Update'

notifications/templates/email/flash_update/flash_update.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
<table width="100%" border="0" cellspacing="0" cellpadding="0">
99
<tr>
1010
<td class="text-center text-default pb-25" style="padding-bottom: 25px;text-align: center;">
11-
<span class="table-heading-main" style="font-size: 18px;font-weight: bold;">Flash Update :{{title}}</span><br>
11+
<span class="table-heading-main" style="font-size: 18px;font-weight: bold;">Flash Update</span><br>
12+
<span class="table-heading-main" style="font-size: 18px;font-weight: bold;">{{title}}</span><br>
1213
</td>
1314
</tr>
1415
<tr>

0 commit comments

Comments
 (0)