From: Guillaume Pellerin Date: Thu, 30 May 2013 15:33:57 +0000 (+0200) Subject: fix too long subject mess X-Git-Tag: 2.8.1-pro~484^2~15^2 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=513956830902263d436124935033607c7f977433;p=teleforma.git fix too long subject mess --- diff --git a/teleforma/views/pro.py b/teleforma/views/pro.py index 7ae5d065..ad54e06a 100644 --- a/teleforma/views/pro.py +++ b/teleforma/views/pro.py @@ -333,7 +333,7 @@ class AnswersView(ListView): v = _('validated') subject = '%s : %s - %s %s' % (seminar.title, a, str(context['rank']), v) - mess = Message(sender=sender, recipient=user, subject=subject, body=text) + mess = Message(sender=sender, recipient=user, subject=subject[:120], body=text) mess.moderation_status = 'a' mess.save() notify_user(mess, 'acceptance')