aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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):