]> git.parisson.com Git - teleforma.git/commitdiff
fix gender
authoryomguy <yomguy@parisson.com>
Mon, 18 Feb 2013 12:47:22 +0000 (13:47 +0100)
committeryomguy <yomguy@parisson.com>
Mon, 18 Feb 2013 12:47:22 +0000 (13:47 +0100)
teleforma/templates/teleforma/messages/answer_rejected.txt
teleforma/views/pro.py

index 74bb27ee7075b9b900d375aa25a5d930ec7c5f82..0895a3e712f695007a3532ef34af5a9635a1fe43 100644 (file)
@@ -1,4 +1,4 @@
-{% load i18n %}{% blocktrans %}{{ first_name }} {{ last_name }},
+{% load i18n %}{% blocktrans %}{{ gender }} {{ first_name }} {{ last_name }},
 
 We are sorry we cannot validate your answer n°{{ rank }} of the e-learning seminar "{{ title }}".
 
index c6389b70b3e0c7152f997f9af83abecb38409eb8..1ee0adeeed21e3062478749775b2d793a24f3687 100644 (file)
@@ -361,10 +361,11 @@ class AnswersView(ListView):
         path = reverse('teleforma-question-answer', kwargs={'id': seminar.id,
                        'pk': answer.question.pk})
         if answer.question.seminar.sub_title:
-            title = unicode(_('Subtitle')) + ' : ' + seminar.sub_title.decode('utf8')
+            title = seminar.sub_title
         else:
             title = seminar.course.title
 
+        context['gender'] = _(user.auditor.all()[0].gender)
         context['first_name'] = user.first_name
         context['last_name'] = user.last_name
         context['rank'] = answer.question.rank