diff options
author | Alvin Li <liweitianux@gmail.com> | 2013-10-05 02:12:28 +0800 |
---|---|---|
committer | Alvin Li <liweitianux@gmail.com> | 2013-10-05 02:12:28 +0800 |
commit | 46b4f8407f40cfcc0abf6c6e4fbc8fcbee00151d (patch) | |
tree | 57538c2540662dc2c9749d4e1e58cd9bcb472c9e /97suifangqa/apps/sfaccount/tasks.py | |
parent | f552b41f4b337e6844f71c29ff177915abbfa417 (diff) | |
download | 97dev-46b4f8407f40cfcc0abf6c6e4fbc8fcbee00151d.tar.bz2 |
* 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
Diffstat (limited to '97suifangqa/apps/sfaccount/tasks.py')
-rw-r--r-- | 97suifangqa/apps/sfaccount/tasks.py | 7 |
1 files changed, 5 insertions, 2 deletions
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) |