aboutsummaryrefslogtreecommitdiff
path: root/views.py
diff options
context:
space:
mode:
authorAlban Gruin2017-01-29 10:55:10 +0100
committerAlban Gruin2017-01-29 10:55:10 +0100
commit009bdf1468b4d7c977f125535e59a5c89731fc4f (patch)
tree296019cfc060922f0b32ebf30e42012947108594 /views.py
parentd5c846ac3214efcbd2b3cb8d562b58006c3a5eb5 (diff)
Tri des dates pour chaque groupe sur la page d'accueilv0.2.1
Diffstat (limited to 'views.py')
-rw-r--r--views.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/views.py b/views.py
index e883e9d..25cf7f6 100644
--- a/views.py
+++ b/views.py
@@ -30,6 +30,8 @@ def index(request):
if date not in group.weeks:
group.weeks.append(date)
+ group.weeks.sort()
+
return render(request, "index.html", {"timetables": timetables, "groups": groups})
def timetable(request, group_slug, year, week):