]> git.parisson.com Git - django-postman.git/commitdiff
Renamed the extra context variables passed to the notifier app to avoid name clash
authorpsam <psam@libwksp034>
Mon, 13 Aug 2012 18:50:01 +0000 (20:50 +0200)
committerpsam <psam@libwksp034>
Mon, 13 Aug 2012 18:50:01 +0000 (20:50 +0200)
postman/utils.py

index b12cbe528c55807795114f37b8c9034dffa395c0..d9a2c986fde3fafa3fa180c6f8110ba640acec27 100644 (file)
@@ -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)