From 46b4f8407f40cfcc0abf6c6e4fbc8fcbee00151d Mon Sep 17 00:00:00 2001 From: Alvin Li Date: Sat, 5 Oct 2013 02:12:28 +0800 Subject: * improved 'signup' function for sfaccount * changed 'redirect url' for 'sfaccount.views.signup_view' * improved 'sfaccount.models.Account', added 'delete_account()' method; added 'html' type email templates for activation email --- 97suifangqa/apps/sfaccount/tasks.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to '97suifangqa/apps/sfaccount/tasks.py') diff --git a/97suifangqa/apps/sfaccount/tasks.py b/97suifangqa/apps/sfaccount/tasks.py index 94b520a..1613646 100644 --- a/97suifangqa/apps/sfaccount/tasks.py +++ b/97suifangqa/apps/sfaccount/tasks.py @@ -5,6 +5,9 @@ from celery import task from sfaccount.functional import send_mail as _send_mail @task -def send_mail(to, subject, content_text, content_html): - _send_mail(to, subject, content_text, content_html) +def send_mail(to, subject, content_text=None, content_html=None): + _send_mail(to=to, + subject=subject, + content_text=content_text, + content_html=content_html) -- cgit v1.2.2