aboutsummaryrefslogtreecommitdiff
path: root/views.py
diff options
context:
space:
mode:
authorAlban Gruin2018-04-21 12:59:32 +0200
committerAlban Gruin2018-04-21 15:21:33 +0200
commit7f0fa4871566050e283845ee0577603ded70df0f (patch)
tree1edd81f767182d762f41fa116eaa7797a113aaf6 /views.py
parent88c1ca07d9846e43f3ce2c785a60fa85224dfe6d (diff)
templates: abstraction et séparation des templates de liste
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 1fc74b5..1308db1 100644
--- a/views.py
+++ b/views.py
@@ -37,14 +37,14 @@ if connection.vendor == "postgresql":
def index(request):
years = Year.objects.order_by("name")
- return render(request, "index.html", {"elements": years})
+ return render(request, "year_list.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, "index.html",
+ return render(request, "mention_list.html",
{"year": year, "elements": timetables})