]> git.parisson.com Git - teleforma.git/commitdiff
fix titles in message (autoescape off)
authoryomguy <yomguy@parisson.com>
Wed, 20 Feb 2013 10:31:52 +0000 (11:31 +0100)
committeryomguy <yomguy@parisson.com>
Wed, 20 Feb 2013 10:31:52 +0000 (11:31 +0100)
teleforma/templates/teleforma/messages/answer_rejected.txt
teleforma/templates/teleforma/messages/seminar_validated.txt
teleforma/views/pro.py

index 3324d5c128a4d7e7dffbee9c9608f09100a35f56..e08e1f33de8baa47877a89aa043a855b237bdbfb 100644 (file)
@@ -1,4 +1,4 @@
-{% load i18n %}{% blocktrans %}{{ gender }} {{ last_name }},
+{% load i18n %}{% autoescape off %}{% blocktrans %}{{ gender }} {{ last_name }},
 
 We are sorry we cannot validate your answer n°{{ rank }} of the e-learning seminar " {{ title }} ".
 
@@ -9,4 +9,4 @@ http://{{ domain }}{{ path }}
 We remind you that you absolutely need to terminate your training before {{ date }}.
 
 The team of the {{ organization }} thank you for your confidence and we remain at your disposal for further information.
-{% endblocktrans %}
\ No newline at end of file
+{% endblocktrans %}{% endautoescape %}
\ No newline at end of file
index 0ee5cc8bd2ec67e96c4ba4c0cc159200a1882f47..5168f29edac6d4fa83b12b5777a83e39168e45fc 100644 (file)
@@ -1,4 +1,4 @@
-{% load i18n %}{% blocktrans %}{{ gender }} {{ last_name }},
+{% load i18n %}{% autoescape off %}{% blocktrans %}{{ gender }} {{ last_name }},
 
 Your answer to the question n°{{ rank }} of the e-learning seminar " {{ title }} " has been validated.
 
@@ -11,4 +11,4 @@ http://{{ domain }}{{ path }}
 We remind you that you absolutely need to terminate all steps of your training before {{ date }}.
 
 The team of the {{ organization }} thank you for your confidence and we remain at your disposal for further information.
-{% endblocktrans %}
+{% endblocktrans %}{% endautoescape %}
index 6b4210f63d5e08b49d812a6f40cccf81fc422578..ab3bbc8cc92d71a20de990acddf6b8d775235bf6 100644 (file)
@@ -357,7 +357,7 @@ class AnswersView(ListView):
                        'pk': answer.question.pk})
 
         if seminar.sub_title:
-            title = unicode(seminar.sub_title) + ' : ' + seminar.title
+            title = seminar.sub_title + ' : ' + seminar.title
         else:
             title = seminar.title
 
@@ -404,7 +404,7 @@ class AnswerDetailViewTest(DetailView):
         organization = seminar.course.department.name
 
         if answer.question.seminar.sub_title:
-            title = unicode(seminar.sub_title) + ' : ' + seminar.title
+            title = seminar.sub_title + ' : ' + seminar.title
         else:
             title = seminar.title