]> git.parisson.com Git - teleforma.git/commitdiff
bugfix
authoryomguy <yomguy@parisson.com>
Wed, 20 Mar 2013 10:37:52 +0000 (11:37 +0100)
committeryomguy <yomguy@parisson.com>
Wed, 20 Mar 2013 10:37:52 +0000 (11:37 +0100)
teleforma/views/pro.py

index 18ac4110c38309e876266edcc3d64e78b0917c5f..e7a028a85e79530ce27c31e89a82320d5ccaac19 100644 (file)
@@ -185,7 +185,7 @@ 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':
+            if answer.question.seminar.course.code == 'demo':
                 answer.validate()
         return super(AnswerView, self).form_valid(form)