Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

use django.core.mail over mailer (using django-mailer 0.2a1+ supports…

… e-mail backends)
  • Loading branch information...
commit 2be9a5a89254bbc8aa475170fd6bcd8a01e5924b 1 parent 879a0c7
@brosner brosner authored
Showing with 1 addition and 5 deletions.
  1. +1 −5 notification/models.py
View
6 notification/models.py
@@ -8,6 +8,7 @@
from django.db import models
from django.db.models.query import QuerySet
from django.conf import settings
+from django.core.mail import send_mail
from django.core.urlresolvers import reverse
from django.template import Context
from django.template.loader import render_to_string
@@ -24,11 +25,6 @@
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import ugettext, get_language, activate
-# favour django-mailer but fall back to django.core.mail
-if 'mailer' in settings.INSTALLED_APPS:
- from mailer import send_mail
-else:
- from django.core.mail import send_mail
QUEUE_ALL = getattr(settings, "NOTIFICATION_QUEUE_ALL", False)
Please sign in to comment.
Something went wrong with that request. Please try again.