From 355edce63581aa28345d575ca8964c759a12ffd6 Mon Sep 17 00:00:00 2001 From: xinwen Date: Wed, 24 Jun 2020 15:09:23 +0800 Subject: [PATCH] =?UTF-8?q?[Fix]=20=E6=B2=A1=E6=9C=89=E8=AE=BE=E7=BD=AE=20?= =?UTF-8?q?*=E9=82=AE=E4=BB=B6=E9=BB=98=E8=AE=A4=E4=B8=BB=E9=A2=98*=20?= =?UTF-8?q?=E9=82=AE=E4=BB=B6=E5=8F=91=E9=80=81=E4=B8=8D=E6=88=90=E5=8A=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/common/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/common/tasks.py b/apps/common/tasks.py index aecc54ca7..eeeee7214 100644 --- a/apps/common/tasks.py +++ b/apps/common/tasks.py @@ -24,7 +24,7 @@ def send_mail_async(*args, **kwargs): """ if len(args) == 3: args = list(args) - args[0] = settings.EMAIL_SUBJECT_PREFIX + args[0] + args[0] = (settings.EMAIL_SUBJECT_PREFIX or '') + args[0] email_from = settings.EMAIL_FROM or settings.EMAIL_HOST_USER args.insert(2, email_from) args = tuple(args)