From: Guillaume Pellerin Date: Mon, 22 Jul 2013 07:57:19 +0000 (+0200) Subject: fix no period context X-Git-Tag: 1.1~536 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=fcd59a5016a93d9578cd831c788873777039a6a1;p=teleforma.git fix no period context --- diff --git a/teleforma/views/core.py b/teleforma/views/core.py index 996fa993..6e980b3b 100644 --- a/teleforma/views/core.py +++ b/teleforma/views/core.py @@ -196,7 +196,7 @@ class PeriodAccessMixin(View): period = Period.objects.filter(id=int(self.kwargs['period_id'])) if period: self.period = period[0] - context['period'] = self.period + context['period'] = self.period return context def render_to_response(self, context):