From ec39a3aea485930d02d08290529643574942277a Mon Sep 17 00:00:00 2001 From: sandeepsajan0 <sandeepsajan0@gmail.com> Date: Wed, 25 May 2022 18:42:15 +0530 Subject: [PATCH] Use update_fields param to update submit time field --- hypha/apply/funds/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hypha/apply/funds/views.py b/hypha/apply/funds/views.py index f0a229af5..73d045fae 100644 --- a/hypha/apply/funds/views.py +++ b/hypha/apply/funds/views.py @@ -1068,7 +1068,7 @@ class ApplicantSubmissionEditView(BaseSubmissionEditView): ) self.object.submit_time = timezone.now() - self.object.save() + self.object.save(update_fields=['submit_time']) # Required for django-file-form: delete temporary files for the new files # uploaded while edit. -- GitLab