From: Guillaume Pellerin Date: Fri, 20 Sep 2013 08:05:30 +0000 (+0200) Subject: seminar progression goes to 100% only when all answer are validated X-Git-Tag: 2.8.1-pro~483^2~9 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=8a0de34b2c5a28da5c086ab1993994b129f9e9fb;p=teleforma.git seminar progression goes to 100% only when all answer are validated --- diff --git a/teleforma/context_processors.py b/teleforma/context_processors.py index f769d26f..0c89b9e5 100644 --- a/teleforma/context_processors.py +++ b/teleforma/context_processors.py @@ -53,7 +53,8 @@ def seminar_progress(user, seminar): questions = Question.objects.filter(seminar=seminar, status=3) for question in questions: total += question.weight - answer = Answer.objects.filter(question=question, status=3, user=user) + answer = Answer.objects.filter(question=question, status=3, user=user, + validated=True, treated=True) if answer: progress += question.weight