From: yomguy Date: Fri, 25 Jan 2013 11:41:39 +0000 (+0100) Subject: bugfix X-Git-Tag: 0.9-probarreau~103 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=28cbb212ca911630344305eabf2ce2073180900d;p=teleforma.git bugfix --- diff --git a/teleforma/context_processors.py b/teleforma/context_processors.py index 83f20b87..8d97bf95 100644 --- a/teleforma/context_processors.py +++ b/teleforma/context_processors.py @@ -63,7 +63,7 @@ def seminar_progress(user, seminar): return 0 def seminar_validated(user, seminar): - validated = [] + validated = [False] questions = seminar.question.filter(status=3) if questions: for question in questions: diff --git a/teleforma/views/pro.py b/teleforma/views/pro.py index 7a0ca19b..a466588c 100644 --- a/teleforma/views/pro.py +++ b/teleforma/views/pro.py @@ -183,7 +183,7 @@ class AnswerView(FormView): context['status'] = self.status context['seminar'] = self.question.seminar context['seminar_progress'] = seminar_progress(user, self.question.seminar) - set_revision(user, seminar) + set_revision(user, self.question.seminar) return context def get_success_url(self):