From b8f2e124fe364ed86f117aa704f1ec96c91c2274 Mon Sep 17 00:00:00 2001 From: Ivan Yelizariev Date: Fri, 16 Jan 2015 12:55:49 +0200 Subject: [PATCH] update notification content --- im_notif/im_notif_models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/im_notif/im_notif_models.py b/im_notif/im_notif_models.py index c2cfa8e..b85a85f 100644 --- a/im_notif/im_notif_models.py +++ b/im_notif/im_notif_models.py @@ -74,7 +74,7 @@ class mail_notification(models.Model): ) author = message.author_id and message.author_id.name_get() author = author and author[0][1] or message.email_from - body = html2plaintext(message.body)[:100] or '' + #body = html2plaintext(message.body)[:100] or '' mtype = {'email': _('Email'), 'comment': _('Comment'), 'notification': _('System notification'), @@ -84,9 +84,9 @@ class mail_notification(models.Model): '_____________________', '_____________________', '%s [FROM] %s' % (message.type, author), - '[ABOUT] %s: %s' % (message.record_name or '', url) + '[ABOUT] %s: %s' % (message.subject or message.record_name or '', url) ] - im_text = im_text + body.split('\n') + #im_text = im_text + body.split('\n') return im_text