From a5c1852e4b27c4d776ee833fd14652c7ef4b70d6 Mon Sep 17 00:00:00 2001 From: yomguy Date: Tue, 12 Feb 2013 12:45:44 +0100 Subject: [PATCH] fix answer reject --- teleforma/views/pro.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')) -- 2.39.5