]> git.parisson.com Git - teleforma.git/commitdiff
fix too long subject mess
authorGuillaume Pellerin <yomguy@parisson.com>
Thu, 30 May 2013 15:33:57 +0000 (17:33 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Thu, 30 May 2013 15:33:57 +0000 (17:33 +0200)
teleforma/views/pro.py

index 7ae5d065aff806e740f8c0f1635fe58161ffeee6..ad54e06a6761b1086c4c4df3ff552a3395f3499e 100644 (file)
@@ -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')