Skip to content
This repository has been archived by the owner on Oct 28, 2020. It is now read-only.

Commit

Permalink
Merge pull request #894 from akatsoulas/1115671-mentor-email
Browse files Browse the repository at this point in the history
[fix bug 1115671] Change text in email template for mentor reassignment.
  • Loading branch information
akatsoulas committed Dec 29, 2014
2 parents 7422537 + d6ab739 commit 6b80894
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion remo/profiles/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ def email_mentor_notification(sender, instance, raw, **kwargs):
if UserProfile.objects.filter(user=instance.user).exists() and not raw:
user_profile = UserProfile.objects.get(user=instance.user)
if user_profile.mentor and user_profile.mentor != instance.mentor:
subject = '[Reps] Change of mentor.'
subject = '[Reps] Mentor reassignment.'
email_template = 'emails/mentor_change_notification.txt'
recipients = [user_profile.mentor.id, user_profile.user.id,
instance.mentor.id]
Expand Down
13 changes: 6 additions & 7 deletions remo/profiles/templates/emails/mentor_change_notification.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
Hello!
Hi {{ rep_user.get_full_name() }},

This email was generated automatically to inform you
that {{ rep_user.get_full_name() }} [1] is now mentored
by {{ new_mentor.get_full_name() }} [2].
I would like to indroduce you to {{ new_mentor.get_full_name() }} [1],
your new mentor.

Cheers!
{{ new_mentor.get_full_name() }} will schedule a meeting with you soon
to catch up and know more about you and your goals in the Reps program.

Regards,
Your lovely ReMo bot.

[1] {{ SITE_URL }}{{ url('profiles_view_profile',
rep_user.userprofile.display_name) }}
[2] {{ SITE_URL }}{{ url('profiles_view_profile',
new_mentor.userprofile.display_name) }}

0 comments on commit 6b80894

Please sign in to comment.