From 3ad28bd029e2111abc3fb0a401e3532e695655f5 Mon Sep 17 00:00:00 2001
From: "J.-S. Caux" <J.S.Caux@uva.nl>
Date: Sun, 15 May 2016 05:48:38 +0200
Subject: [PATCH] Correct typo in submissions/views

---
 submissions/views.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/submissions/views.py b/submissions/views.py
index 51eee2873..2941f197a 100644
--- a/submissions/views.py
+++ b/submissions/views.py
@@ -435,7 +435,7 @@ def communication(request, submission_id, type, referee_id=None):
             if type == 'EtoA' or type == 'EtoR' or type == 'EtoS':
                 return redirect(reverse('submissions:editorial_page', kwargs={'submission_id': submission_id}))
             elif type == 'AtoE' or type == 'RtoE' or type == 'StoE':
-                return redirect(request, reverse('scipost:personal_page'))
+                return redirect(reverse('scipost:personal_page'))
     else:
         form = EditorialCommunicationForm()
     context = {'submission': submission, 'type': type, 'form': form}
@@ -479,8 +479,9 @@ def submit_report(request, submission_id):
                 invitation.fulfilled = True
                 invitation.save()
             flagged = False
-            if author.user.last_name in submission.referees_flagged:
-                flagged = True
+            if submission.referees_flagged is not None:
+                if author.user.last_name in submission.referees_flagged:
+                    flagged = True
             newreport = Report (
                 submission = submission,
                 author = author,
-- 
GitLab