From c6e745b22688fe3be4c8996c774f9d13956aecce Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Thu, 26 Apr 2018 11:37:40 +0200 Subject: [PATCH] Fix exam perion for scores --- teleforma/exam/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.39.5