Permalink
Browse files

Import should_send in the best possible way for now.

  • Loading branch information...
1 parent e99cda1 commit 4d8b8ceb93a548442e8a1f532ec9f34e1aa00717 @brosner brosner committed Apr 19, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 notification/backends/email.py
@@ -1,4 +1,3 @@
-
from django.conf import settings
from django.db.models.loading import get_app
from django.core.urlresolvers import reverse
@@ -20,6 +19,7 @@ class EmailBackend(backends.BaseBackend):
spam_sensitivity = 2
def can_send(self, user, notice_type):
+ from notification.models import should_send
if should_send(user, notice_type, self.label) and user.email:
return True
return False

0 comments on commit 4d8b8ce

Please sign in to comment.