aboutsummaryrefslogtreecommitdiff
path: root/views.py
diff options
context:
space:
mode:
authorAlban Gruin2017-09-28 22:27:50 +0200
committerAlban Gruin2017-09-28 22:27:50 +0200
commit1d5068de5e4babb8c2c969c626fd1d8b53bc28ea (patch)
tree105d9ba1f39a8fc6b07495373cc33d2286e0d673 /views.py
parent30b58f8b8229c7ac62d886dfd79cbf7ec027f6f2 (diff)
Mise en commun de la template de sélection de l’année et de la mention
Diffstat (limited to 'views.py')
-rw-r--r--views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/views.py b/views.py
index 23bced4..14a4208 100644
--- a/views.py
+++ b/views.py
@@ -23,13 +23,13 @@ from .utils import get_current_week, get_week, group_courses
def index(request):
years = Year.objects.order_by("name")
- return render(request, "index.html", {"years": years})
+ return render(request, "index.html", {"elements": years})
def mention_list(request, year_slug):
year = get_object_or_404(Year, slug=year_slug)
timetables = Timetable.objects.order_by("name").filter(year=year)
- return render(request, "mention_list.html", {"year": year, "timetables": timetables})
+ return render(request, "index.html", {"year": year, "elements": timetables})
def group_list_common(request, timetable, groups):
year, week = get_current_week()