diff options
Diffstat (limited to 'views.py')
-rw-r--r-- | views.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -76,7 +76,7 @@ def group_list(request, year_slug, timetable_slug): group.weeks.sort() return render(request, "group_list.html", - {"timetable": timetable, "groups": groups}) + {"timetable": timetable, "elements": groups}) def groups_all(request, year_slug, timetable_slug): @@ -199,7 +199,7 @@ def rooms(request): RawSQL("date_trunc('week', edt_course.begin)", []), distinct=True)) - return render(request, "group_list.html", {"groups": rooms}) + return render(request, "room_list.html", {"elements": rooms}) # Récupération des salles et de toutes les semaines où elles sont # concernées. @@ -232,7 +232,7 @@ def rooms(request): rooms_weeks[-1].weeks.append(date) # Rendu de la page. - return render(request, "group_list.html", {"groups": rooms_weeks}) + return render(request, "room_list.html", {"elements": rooms_weeks}) def room_weeks(request, room_slug): |