From 9be6d21a548a1a041fdf52791fde96cc49092682 Mon Sep 17 00:00:00 2001 From: Alban Gruin Date: Sun, 12 Feb 2017 13:25:51 +0100 Subject: Affichage d'un message si il n'y a pas de cours enregitré pour un groupe Tri des emplois du temps par nom --- templates/index.html | 2 +- views.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/index.html b/templates/index.html index 3170aea..d834884 100644 --- a/templates/index.html +++ b/templates/index.html @@ -62,7 +62,7 @@ li.course {

{{ timetable.name }}

{% endfor %}{% endblock %} diff --git a/views.py b/views.py index 08a450f..c573589 100644 --- a/views.py +++ b/views.py @@ -29,7 +29,7 @@ from .utils import get_current_week, get_week, group_courses import datetime def index(request): - timetables = Timetable.objects.all() + timetables = Timetable.objects.all().order_by("name") groups = Group.objects.filter(tp__isnull=False).order_by("name") year, week = get_current_week() -- cgit v1.2.1