From 2c2583aebf4ea6db1c6bde12bc262c6965e25950 Mon Sep 17 00:00:00 2001
From: Jorran de Wit <jorrandewit@outlook.com>
Date: Tue, 27 Feb 2018 08:43:24 +0100
Subject: [PATCH] Fix date_responded field set

---
 submissions/views.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/submissions/views.py b/submissions/views.py
index cfc2f65ca..382fa6213 100644
--- a/submissions/views.py
+++ b/submissions/views.py
@@ -960,6 +960,7 @@ def decline_ref_invitation(request, invitation_key):
             return render(request, 'submissions/referee_invitations_decline.html', context)
 
         invitation.accepted = False
+        invitation.date_responded = timezone.now()
         invitation.refusal_reason = form.cleaned_data['refusal_reason']
         invitation.save()
         SubmissionUtils.load({'invitation': invitation}, request)
-- 
GitLab