From 8b115ede343afe7f0f29c422aee876141610c9a9 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Fri, 26 Jan 2018 00:29:28 +0100 Subject: [PATCH] Bugfix --- teleforma/exam/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teleforma/exam/views.py b/teleforma/exam/views.py index 4e847395..59142468 100644 --- a/teleforma/exam/views.py +++ b/teleforma/exam/views.py @@ -19,7 +19,7 @@ class ScriptMixinView(View): context = super(ScriptMixinView, self).get_context_data(**kwargs) self.period = Period.objects.get(id=self.kwargs['period_id']) context['period'] = self.period - context['script_service_url'] = getattr(settings, 'TELEFORMA_EXAM_SCRIPT_SERVICE_URL' + context['script_service_url'] = getattr(settings, 'TELEFORMA_EXAM_SCRIPT_SERVICE_URL') if getattr(settings, 'TELEFORMA_EXAM_SCRIPT_UPLOAD', True) and self.period.date_exam_end: context['upload'] = datetime.datetime.now() <= self.period.date_exam_end else: -- 2.39.5