diff options
Diffstat (limited to 'group_messaging/models.py')
-rw-r--r-- | group_messaging/models.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/group_messaging/models.py b/group_messaging/models.py index 9cc12786..5d43baf8 100644 --- a/group_messaging/models.py +++ b/group_messaging/models.py @@ -4,7 +4,7 @@ import copy import datetime import urllib from askbot.mail import send_mail #todo: remove dependency? -from coffin.template.loader import get_template +from django.template.loader import get_template from django.db import models from django.db.models import signals from django.conf import settings as django_settings @@ -395,9 +395,10 @@ class Message(models.Model): #in the template we have a placeholder to be replaced like this: body_text = body_text.replace('THREAD_URL_HOLE', thread_url) send_mail( - recipient_list=[user.email,], - subject_line=subject, - body_text=body_text + subject, + body_text, + django_settings.DEFAULT_FROM_EMAIL, + [user.email,], ) |