From: Gael Le Mignot Date: Tue, 27 Nov 2018 13:49:32 +0000 (+0100) Subject: Fixed regression X-Git-Tag: 1.4.0~20^2 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=16fb5d3fc1823173bd3fcd63479c8e53769af1b0;p=teleforma.git Fixed regression --- diff --git a/teleforma/exam/views.py b/teleforma/exam/views.py index 3b7a8c64..b0e61918 100755 --- a/teleforma/exam/views.py +++ b/teleforma/exam/views.py @@ -179,6 +179,7 @@ class ScriptsPendingView(ScriptsView): qs = super(ScriptsPendingView, self).get_queryset() if self.request.GET.get('corrector') is None: + user = self.request.user # Exclude status=3 but not author=user qs = qs.filter(~Q(status=3) | Q(author=user))