Skip to content
Browse files

pluggable-backends: Pass the message through to backend deliver method.

  • Loading branch information...
1 parent e05f01d commit 25bd4ac9cc8b3eba2ca8c2605660c6fdcffdb441 @brosner brosner committed May 31, 2008
Showing with 2 additions and 2 deletions.
  1. +1 −1 notification/backends/email.py
  2. +1 −1 notification/models.py
View
2 notification/backends/email.py
@@ -19,7 +19,7 @@ def can_send(self, user, notice_type):
return True
return False
- def deliver(self, recipients, notice_type):
+ def deliver(self, recipients, notice_type, message):
notices_url = u"http://%s%s" % (
unicode(Site.objects.get_current()),
reverse("notification_notices"),
View
2 notification/models.py
@@ -260,7 +260,7 @@ def send(users, notice_type_label, message_template, object_list=None, issue_not
if backend.can_send(user, notice_type):
recipients.append(user)
for key, backend in NOTIFICATION_BACKENDS:
- backend.deliver(backend_recipients[key], notice_type)
+ backend.deliver(backend_recipients[key], notice_type, message)
def notices_for(user, archived=False):

0 comments on commit 25bd4ac

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