# HG changeset patch # User Mads Kiilerich # Date 2013-01-29 02:21:21 # Node ID 09757b15ce7ca5e096809c82117237710c50d4cc # Parent 6dd1e4d607203ec08b03b720394b145ca08c3729 notification: don't expand %(when)s in usernames diff --git a/rhodecode/model/notification.py b/rhodecode/model/notification.py --- a/rhodecode/model/notification.py +++ b/rhodecode/model/notification.py @@ -234,9 +234,9 @@ class NotificationModel(BaseModel): data = dict( user=notification.created_by_user.username, - action=_map[notification.type_] + action=_map[notification.type_] % {'when': when}, ) - return (tmpl % data) % {'when': when} + return tmpl % data class EmailNotificationModel(BaseModel):