]> git.parisson.com Git - teleforma.git/commitdiff
Fix exam perion for scores
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Thu, 26 Apr 2018 09:37:40 +0000 (11:37 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Thu, 26 Apr 2018 09:37:40 +0000 (11:37 +0200)
teleforma/exam/views.py

index f38564b8a1b1103f1012bd1304bbff9061d4333e..430110972edd1024540b8aaa2c7f8fcf6e17f1fd 100644 (file)
@@ -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