aboutsummaryrefslogtreecommitdiff
path: root/views.py
diff options
context:
space:
mode:
authorAlban Gruin2017-02-12 13:25:51 +0100
committerAlban Gruin2017-02-12 13:25:51 +0100
commit9be6d21a548a1a041fdf52791fde96cc49092682 (patch)
tree9ce8179be831b7ff68850a5f6074c718853423b9 /views.py
parent6bb960804653efe4b0da436d01d9d9855090f82a (diff)
Affichage d'un message si il n'y a pas de cours enregitré pour un groupe
Tri des emplois du temps par nom
Diffstat (limited to 'views.py')
-rw-r--r--views.py2
1 files changed, 1 insertions, 1 deletions
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()