From: yomguy Date: Wed, 20 Mar 2013 09:58:27 +0000 (+0100) Subject: auto validate answers of the "demo" seminar X-Git-Tag: 2.8.1-pro~491^2~6 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=50084df1a09bb4cb400513b287e1629ec47d0341;p=teleforma.git auto validate answers of the "demo" seminar --- diff --git a/teleforma/views/pro.py b/teleforma/views/pro.py index 5c30ce80..18ac4110 100644 --- a/teleforma/views/pro.py +++ b/teleforma/views/pro.py @@ -185,6 +185,8 @@ class AnswerView(SeminarAccessMixin, FormView): messages.info(self.request, _("You have successfully saved your answer.")) elif answer.status == 3: messages.info(self.request, _("You have successfully submitted your answer.")) + if answer.question.seminar.code == 'demo': + answer.validate() return super(AnswerView, self).form_valid(form) def form_invalid(self, form):