From: Guillaume Pellerin Date: Thu, 26 Apr 2018 09:37:40 +0000 (+0200) Subject: Fix exam perion for scores X-Git-Tag: 1.2~1^2~1 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=c6e745b22688fe3be4c8996c774f9d13956aecce;p=teleforma.git Fix exam perion for scores --- diff --git a/teleforma/exam/views.py b/teleforma/exam/views.py index f38564b8..43011097 100644 --- a/teleforma/exam/views.py +++ b/teleforma/exam/views.py @@ -138,7 +138,7 @@ class ScriptsPendingView(ScriptsView): period = Period.objects.get(id=self.kwargs['period_id']) QT = Q(status__in=(2, 3), period=period) return Script.objects.filter(QT) - + def get_queryset(self): user = self.request.user @@ -199,6 +199,7 @@ class ScriptsTreatedView(ScriptsView): def get_context_data(self, **kwargs): context = super(ScriptsTreatedView, self).get_context_data(**kwargs) + period = Period.objects.get(id=self.kwargs['period_id']) context['title'] = ugettext('Treated scripts') return context