From 72ca55c293eb598c6ccef19eae166f90c8ad4c24 Mon Sep 17 00:00:00 2001 From: jiangweidong Date: Wed, 8 Mar 2023 13:49:38 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E9=82=AE=E7=AE=B1=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E6=97=B6=EF=BC=8C=E4=B8=8D=E5=A1=AB=E5=86=99'=E4=B8=BB?= =?UTF-8?q?=E9=A2=98=E5=89=8D=E7=BC=80'=E4=BC=9A=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/settings/api/email.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/settings/api/email.py b/apps/settings/api/email.py index 2116b969d..45bec7514 100644 --- a/apps/settings/api/email.py +++ b/apps/settings/api/email.py @@ -42,7 +42,7 @@ class MailTestingAPI(APIView): # if k.startswith('EMAIL'): # setattr(settings, k, v) try: - subject = settings.EMAIL_SUBJECT_PREFIX + "Test" + subject = settings.EMAIL_SUBJECT_PREFIX or '' + "Test" message = "Test smtp setting" email_from = email_from or email_host_user email_recipient = email_recipient or email_from