From 0a8cd6b541aaa8fbcf60e8c35fad0f1fd6c33e15 Mon Sep 17 00:00:00 2001 From: virusdefender Date: Tue, 26 Dec 2017 21:22:04 +0800 Subject: [PATCH] fix typo --- account/views/oj.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account/views/oj.py b/account/views/oj.py index 79b5622e..d6783e3a 100644 --- a/account/views/oj.py +++ b/account/views/oj.py @@ -304,7 +304,7 @@ class ApplyResetPasswordAPI(APIView): email_html = render_to_string("reset_password_email.html", render_data) send_email_async.delay(from_name=SysOptions.website_name_shortcut, to_email=user.email, - to_username=user.username, + to_name=user.username, subject=f"Reset your password", content=email_html) return self.success("Succeeded")