Mercurial > public > sg101
diff core/functions.py @ 1032:e932f2ecd4a7
Django 1.8 warnings / tech debt cleanup.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 26 Dec 2015 15:10:55 -0600 |
parents | f5aa74dcdd7a |
children |
line wrap: on
line diff
--- a/core/functions.py Sun Dec 20 22:18:59 2015 -0600 +++ b/core/functions.py Sat Dec 26 15:10:55 2015 -0600 @@ -10,7 +10,7 @@ from django.conf import settings import django.core.mail -import core.tasks +from .tasks import send_mail as send_mail_task class TemporaryFile(object): @@ -70,7 +70,7 @@ } if defer: - core.tasks.send_mail.delay(**msg_kwargs) + send_mail_task.delay(**msg_kwargs) else: msg = django.core.mail.EmailMessage(**msg_kwargs) msg.send()