]> git.parisson.com Git - teleforma.git/commitdiff
Fixed regression
authorGael Le Mignot <gael@pilotsystems.net>
Tue, 27 Nov 2018 13:49:32 +0000 (14:49 +0100)
committerGael Le Mignot <gael@pilotsystems.net>
Tue, 27 Nov 2018 13:49:32 +0000 (14:49 +0100)
teleforma/exam/views.py

index 3b7a8c64b054d66ac6119c5bf12c2e9645cf28ec..b0e61918bd9080b9b78fa19fbf416e4524adba9b 100755 (executable)
@@ -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))