]> git.parisson.com Git - teleforma.git/commitdiff
test
authoryomguy <yomguy@parisson.com>
Wed, 20 Feb 2013 10:17:23 +0000 (11:17 +0100)
committeryomguy <yomguy@parisson.com>
Wed, 20 Feb 2013 10:17:23 +0000 (11:17 +0100)
teleforma/views/pro.py

index 27fed9a68658ae4743545e1212955fbe74c07112..c07314364940c0688ecbe93e3ac7005daac33043 100644 (file)
@@ -298,10 +298,10 @@ class AnswersView(ListView):
 
         path = reverse('teleforma-seminar-detail', kwargs={'pk':seminar.id})
 
-        if answer.question.seminar.sub_title:
+        if seminar.sub_title:
             title = unicode(seminar.sub_title) + ' : ' + seminar.title
         else:
-            title = seminar.title
+            title = unicode('') + seminar.title
 
         auditor = user.auditor.all()
         if auditor: