diff --git a/submissions/views.py b/submissions/views.py index 071e117d82edd6af8e77a5be41630169f6ffc9ef..dbe926c6d43fff757dc1943d7400f2fe395de3c6 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'))