Browse Source

format notification

pull/117/head
Ivan Yelizariev 10 years ago
committed by Ildar Nasyrov
parent
commit
a0489390d2
No known key found for this signature in database GPG Key ID: D1FDACDF9B83578
  1. 9
      im_notif/im_notif_models.py

9
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

Loading…
Cancel
Save