From b70f811d13087fee173a4dedc1ed86deae8f60a0 Mon Sep 17 00:00:00 2001 From: liangliangyy Date: Tue, 17 Jan 2017 18:15:14 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=84=E8=AE=BA=E9=82=AE=E4=BB=B6=E5=88=9B?= =?UTF-8?q?=E5=BB=BA=E7=BA=BF=E7=A8=8B=E5=8F=91=E9=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- comments/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/comments/models.py b/comments/models.py index d2b2ccc..d168ca3 100644 --- a/comments/models.py +++ b/comments/models.py @@ -47,7 +47,7 @@ class Comment(models.Model): msg = EmailMultiAlternatives(subject, html_content, from_email='no-reply@lylinux.net', to=[tomail]) msg.content_subtype = "html" - _thread.start_new_thread(self.send_comment_email, (msg)) + _thread.start_new_thread(self.send_comment_email, (msg,)) if self.parent_comment: html_content = """ @@ -59,7 +59,7 @@ class Comment(models.Model): tomail = self.parent_comment.author.email msg = EmailMultiAlternatives(subject, html_content, from_email='no-reply@lylinux.net', to=[tomail]) msg.content_subtype = "html" - _thread.start_new_thread(self.send_comment_email, (msg)) + _thread.start_new_thread(self.send_comment_email, (msg,)) def __str__(self): return self.body