From e95425bbf275a617e33fc5defcfa2c73ca2d149f Mon Sep 17 00:00:00 2001 From: Ivan Yelizariev Date: Fri, 16 Jan 2015 12:28:31 +0200 Subject: [PATCH] format notification --- im_notif/im_notif_models.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/im_notif/im_notif_models.py b/im_notif/im_notif_models.py index 85ff60d..ca95bdd 100644 --- a/im_notif/im_notif_models.py +++ b/im_notif/im_notif_models.py @@ -80,9 +80,12 @@ class mail_notification(models.Model): 'notification': _('System notification'), }.get(message.type, '') - im_text = ['NEW %s FROM %s' % (message.type, author), - 'OPEN %s: %s' % (message.record_name or '', url) - ] + im_text = [ + '_____________________', + '_____________________', + '%s FROM %s' % (message.type, author), + 'ABOUT %s: %s' % (message.record_name or '', url) + ] im_text = im_text + body.split('\n') return im_text