]> git.parisson.com Git - teleforma.git/commitdiff
Fix script per period
authorGuillaume Pellerin <yomguy@parisson.com>
Thu, 22 Feb 2018 16:56:34 +0000 (17:56 +0100)
committerGuillaume Pellerin <yomguy@parisson.com>
Thu, 22 Feb 2018 16:56:34 +0000 (17:56 +0100)
teleforma/exam/views.py

index 59142468075140a7f16fedd3fd0a400e9bcf3103..e8934605be6c3206f368efa9c2345bde8754104d 100644 (file)
@@ -243,7 +243,7 @@ class ScriptsScoreAllView(ScriptsTreatedView):
         context = super(ScriptsScoreAllView, self).get_context_data(**kwargs)
 
         if self.request.user.is_staff or self.request.user.professor.all():
-            scripts = Script.objects.filter(period=self.period).exclude(score=None)
+            scripts = Script.objects.filter(period=self.period, date_added__gte=self.period.date_begin).exclude(score=None)
         else:
             scripts = self.get_queryset()