From: Guillaume Pellerin Date: Thu, 23 Jul 2026 11:54:34 +0000 (+0200) Subject: do not update date_submitted X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=97015a10adf892a424232a035fd9a68dcf47251c;p=teleforma.git do not update date_submitted --- diff --git a/teleforma/exam/models.py b/teleforma/exam/models.py index a04ecc12..bb0fe76b 100755 --- a/teleforma/exam/models.py +++ b/teleforma/exam/models.py @@ -315,11 +315,12 @@ class Script(BaseResource): class Meta(MetaCore): verbose_name = _('Script') verbose_name_plural = _('Scripts') - ordering = ['date_submitted'] + ordering = ['date_added'] def auto_set_corrector(self): - self.date_submitted = datetime.datetime.now() + if not self.date_submitted: + self.date_submitted = datetime.datetime.now() quota_list = [] all_quotas = self.course.quotas.filter(date_start__lte=self.date_submitted,