From: Guillaume Pellerin Date: Thu, 25 Jan 2018 23:29:28 +0000 (+0100) Subject: Bugfix X-Git-Tag: 1.2~10^2~7 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=8b115ede343afe7f0f29c422aee876141610c9a9;p=teleforma.git Bugfix --- 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: