From 8509bc114f9d9efe0c764c8fd5465a7e204f7e24 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Thu, 30 May 2013 16:31:56 +0200 Subject: [PATCH] fix seminar message in other pages --- teleforma/views/pro.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/teleforma/views/pro.py b/teleforma/views/pro.py index 89df4050..7ae5d065 100644 --- a/teleforma/views/pro.py +++ b/teleforma/views/pro.py @@ -132,11 +132,11 @@ class SeminarView(SeminarAccessMixin, DetailView): validated = seminar_validated(user, seminar) context['seminar_progress'] = progress context['seminar_validated'] = validated - if progress == 100 and not validated: + if progress == 100 and not validated and self.template_name == 'teleforma/seminar_detail.html': messages.info(self.request, _("You have successfully terminated your e-learning seminar. A training testimonial will be available as soon as the pedagogical team validate all your answers (48h maximum).")) - elif progress < 100 and validated: + elif progress < 100 and validated and self.template_name == 'teleforma/seminar_detail.html': messages.info(self.request, _("All your answers have been validated. You can now read the corrected documents (step 5).")) - elif progress == 100 and validated: + elif progress == 100 and validated and self.template_name == 'teleforma/seminar_detail.html': messages.info(self.request, _("You have successfully terminated all steps of your e-learning seminar. You can now download your training testimonial below.")) set_revision(user, seminar) return context -- 2.39.5