Skip to content

Commit 09d7ef3

Browse files
authored
Merge pull request #2238 from codalab/email-username
Include username in email
2 parents 7622205 + 4e26f5a commit 09d7ef3

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

src/apps/competitions/emails.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ def send_participation_requested_emails(participant):
1010
return
1111

1212
context = {
13-
'participant': participant
13+
'participant': participant,
14+
'user': participant.user
1415
}
1516
# Notify Organizers
1617
codalab_send_mail(
@@ -36,7 +37,8 @@ def send_participation_accepted_emails(participant):
3637
return
3738

3839
context = {
39-
'participant': participant
40+
'participant': participant,
41+
'user': participant.user
4042
}
4143
codalab_send_mail(
4244
context_data=context,
@@ -60,7 +62,8 @@ def send_participation_denied_emails(participant):
6062
return
6163

6264
context = {
63-
'participant': participant
65+
'participant': participant,
66+
'user': participant.user
6467
}
6568
# Notify Organizers
6669
codalab_send_mail(

0 commit comments

Comments
 (0)