Mercurial > kallithea
changeset 3255:09757b15ce7c beta
notification: don't expand %(when)s in usernames
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Tue, 29 Jan 2013 03:21:21 +0100 |
parents | 6dd1e4d60720 |
children | b67173bae3ff |
files | rhodecode/model/notification.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/model/notification.py Tue Jan 29 03:21:08 2013 +0100 +++ b/rhodecode/model/notification.py Tue Jan 29 03:21:21 2013 +0100 @@ -234,9 +234,9 @@ 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):