]> git.parisson.com Git - teleforma.git/commitdiff
add default period for annals
authorGuillaume Pellerin <yomguy@parisson.com>
Wed, 25 Jun 2014 22:04:55 +0000 (00:04 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Wed, 25 Jun 2014 22:04:55 +0000 (00:04 +0200)
teleforma/views/crfpa.py

index 8eeb3c16dc9bf61ea3bb17d1b518c64e179c7f86..678a6d8e4c45f57f50ce66eb3ac42a62854305a1 100644 (file)
@@ -323,6 +323,8 @@ class AnnalsView(ListView):
         if self.student:
             context['student'] =  self.student
         context['all_courses'] = self.all_courses
+        periods = get_periods(user)
+        context['period'] = periods[0]
         return context
 
     @method_decorator(login_required)