X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/1a949f7c97dc2f34c135f5cdf088df2927d3d652..97b07684ccfce548a96ed5473bffc76fb0b39fb2:/forum/management/commands/send_email_alerts.py diff --git a/forum/management/commands/send_email_alerts.py b/forum/management/commands/send_email_alerts.py index ba1d943..20e8a6a 100644 --- a/forum/management/commands/send_email_alerts.py +++ b/forum/management/commands/send_email_alerts.py @@ -3,10 +3,9 @@ from django.core.management.base import NoArgsCommand from django.utils.translation import ugettext as _ from django.template import loader, Context, Template from django.core.mail import EmailMultiAlternatives -from django.conf import settings +from forum import settings from forum.models import KeyValue, Activity, User, QuestionSubscription from forum.utils.mail import send_email -from forum import const class QuestionRecord: def __init__(self, question): @@ -113,7 +112,7 @@ class Command(NoArgsCommand): context['new_questions'] = False if context['new_users'] or context['activity_in_subscriptions'] or context['new_questions']: - send_email(digest_subject, (u.username, u.email), "notifications/digest.html", context, threaded=False) + send_email(digest_subject, [(u.username, u.email)], "notifications/digest.html", context, threaded=False) def get_digest_control(self):