From 571aeb9f2a59eefe189312365574e5ef1e5f39e0 Mon Sep 17 00:00:00 2001 From: "J.-S. Caux" <J.S.Caux@uva.nl> Date: Thu, 13 Jul 2017 11:17:47 +0200 Subject: [PATCH] Correct bug: show only non-cancelled ref inv in accept_or_decline --- submissions/views.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/submissions/views.py b/submissions/views.py index 071e117d8..dbe926c6d 100644 --- a/submissions/views.py +++ b/submissions/views.py @@ -733,7 +733,9 @@ def accept_or_decline_ref_invitations(request): RefereeInvitations need to be either accepted or declined by the invited user using this view. The decision will be taken one invitation at a time. """ - invitation = RefereeInvitation.objects.filter(referee__user=request.user, accepted=None).first() + invitation = RefereeInvitation.objects.filter(referee__user=request.user, + accepted=None, + cancelled=False).first() if not invitation: messages.success(request, 'There are no Refereeing Invitations for you to consider.') return redirect(reverse('scipost:personal_page')) -- GitLab