From: yomguy Date: Tue, 12 Feb 2013 11:45:44 +0000 (+0100) Subject: fix answer reject X-Git-Tag: 0.9-probarreau~68 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=a5c1852e4b27c4d776ee833fd14652c7ef4b70d6;p=teleforma.git fix answer reject --- diff --git a/teleforma/views/pro.py b/teleforma/views/pro.py index c5e936f9..5ea63336 100644 --- a/teleforma/views/pro.py +++ b/teleforma/views/pro.py @@ -348,6 +348,7 @@ class AnswersView(ListView): seminar = answer.question.seminar organization = seminar.course.department.name site = Site.objects.get_current() + user = answer.user testimonials = Testimonial.objects.filter(user=user, seminar=seminar) if testimonials: @@ -369,7 +370,6 @@ class AnswersView(ListView): context['organization'] = organization context['date'] = answer.question.seminar.expiry_date - user = answer.user sender = request.user text = render_to_string('teleforma/messages/answer_rejected.txt', context) subject = seminar.title + ' : ' + unicode(_('validation conditions for an answer'))