From 4578ee7b41c56571c582f163a266eeac4d36d50f Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Sun, 12 Jul 2026 18:37:28 +0200 Subject: [PATCH] fix double mess when script marked or rejected --- teleforma/exam/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/teleforma/exam/models.py b/teleforma/exam/models.py index a04ecc12..e391e099 100755 --- a/teleforma/exam/models.py +++ b/teleforma/exam/models.py @@ -457,7 +457,7 @@ class Script(BaseResource): mess = Message(sender=sender, recipient=self.author, subject=subject[:119], body=text) mess.moderation_status = 'a' - mess.save() + # mess.save() site = Site.objects.all()[0] notify_user(mess, 'acceptance', site) @@ -475,7 +475,7 @@ class Script(BaseResource): mess = Message(sender=self.corrector, recipient=self.author, subject=subject[:119], body=text) mess.moderation_status = 'a' - mess.save() + # mess.save() notify_user(mess, 'acceptance', site) -- 2.47.3