aboutsummaryrefslogtreecommitdiff
path: root/views.py
diff options
context:
space:
mode:
authorAlban Gruin2017-11-18 18:21:52 +0100
committerAlban Gruin2017-11-27 12:11:31 +0100
commitbb049a8d5954bbcf3ae5207a0ab4445591555d6e (patch)
tree3bc1b656098c61700cf256110d939610617e03be /views.py
parent3148aaf7c43866bd672d54ac54a0e70bc71f1020 (diff)
Tentative de mise en commun de la template des edts
Diffstat (limited to 'views.py')
-rw-r--r--views.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/views.py b/views.py
index 428711f..cb6978b 100644
--- a/views.py
+++ b/views.py
@@ -83,7 +83,8 @@ def timetable_common(request, obj, year=None, week=None):
return render(request, "timetable.html", {"group": obj, "courses": grouped_courses,
"last_update": last_update,
"year": year, "week": int(week),
- "is_old_timetable": is_old_timetable})
+ "is_old_timetable": is_old_timetable,
+ "group_mode": isinstance(obj, Group)})
def timetable(request, year_slug, timetable_slug, group_slug, year=None, week=None):
timetable = get_object_or_404(Timetable, year__slug=year_slug, slug=timetable_slug)