]> git.parisson.com Git - teleforma.git/commitdiff
fix no period context
authorGuillaume Pellerin <yomguy@parisson.com>
Mon, 22 Jul 2013 07:57:19 +0000 (09:57 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Mon, 22 Jul 2013 07:57:19 +0000 (09:57 +0200)
teleforma/views/core.py

index 996fa99307d685581814839ff8b098502e951430..6e980b3be59340028ad3d5af9bbc20345852f9e4 100644 (file)
@@ -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):