Skip to content
Browse files

Added a default backend for backward compatibility.

  • Loading branch information...
1 parent 47b310b commit 1cc80ae5efed222dbec1ea8e0eb6ddd8456ad9da @brosner brosner committed Jan 6, 2009
Showing with 6 additions and 1 deletion.
  1. +6 −1 notification/backends/__init__.py
View
7 notification/backends/__init__.py
@@ -6,9 +6,14 @@
from base import BaseBackend
+# mostly for backend compatibility
+default_backends = (
+ ("email", "notification.backends.email.EmailBackend"),
+)
+
def load_backends():
backends = []
- for bits in getattr(settings, "NOTIFICATION_BACKENDS", tuple()):
+ for bits in getattr(settings, "NOTIFICATION_BACKENDS", default_backends):
if len(bits) == 2:
label, backend_path = bits
spam_sensitivity = None

0 comments on commit 1cc80ae

Please sign in to comment.
Something went wrong with that request. Please try again.