diff options
Diffstat (limited to 'program')
-rw-r--r-- | program/views.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/program/views.py b/program/views.py index 3b86b5d..365a4db 100644 --- a/program/views.py +++ b/program/views.py @@ -166,6 +166,8 @@ class WeekScheduleView(TemplateView): context['saturday_timeslots'] = TimeSlot.objects.get_day_timeslots(saturday) context['sunday_timeslots'] = TimeSlot.objects.get_day_timeslots(sunday) context['last_w'] = datetime.strftime(monday - timedelta(days=7), '%G/%V') + context['current_year'] = datetime.strftime(monday, '%G') + context['current_week'] = datetime.strftime(monday, '%V') context['cur_w'] = datetime.strftime(monday, '%G/%V') context['next_w1'] = datetime.strftime(monday + timedelta(days=7), '%G/%V') context['next_w2'] = datetime.strftime(monday + timedelta(days=14), '%G/%V') |