From 7d8b63205b7056cd034b8f5de3fbc684c0b2fb2b Mon Sep 17 00:00:00 2001 From: psam Date: Mon, 13 Aug 2012 20:50:01 +0200 Subject: [PATCH] Renamed the extra context variables passed to the notifier app to avoid name clash --- postman/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/postman/utils.py b/postman/utils.py index b12cbe5..d9a2c98 100644 --- a/postman/utils.py +++ b/postman/utils.py @@ -88,7 +88,8 @@ def notify_user(object, action): else: return if notification: - notification.send(users=[user], label=label, extra_context={'message': object, 'action': action}) + # the context key 'message' is already used in django-notification/models.py/send_now() (v0.2.0) + notification.send(users=[user], label=label, extra_context={'pm_message': object, 'pm_action': action}) else: if not DISABLE_USER_EMAILING and user.email and user.is_active: email('postman/email_user_subject.txt', 'postman/email_user.txt', [user.email], object, action) -- 2.39.5