diff options
author | Alban Gruin | 2017-11-25 20:43:21 +0100 |
---|---|---|
committer | Alban Gruin | 2017-11-25 20:43:21 +0100 |
commit | 4aebed8ca3f879aa4e2996620657a14ac9538477 (patch) | |
tree | 645005f9275000a7f1431bb9d901e6501552726f /views.py | |
parent | d1191533a29b5f80543faa0758c7303d0a4b450c (diff) |
get_week() convertit automatiquement les chaines de caractères en int
Diffstat (limited to 'views.py')
-rw-r--r-- | views.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -70,7 +70,7 @@ def timetable(request, year_slug, timetable_slug, group_slug, year=None, week=No elif (int(year), int(week)) < (current_year, current_week): is_old_timetable = True - start, end = get_week(int(year), int(week)) + start, end = get_week(year, week) timetable = get_object_or_404(Timetable, year__slug=year_slug, slug=timetable_slug) group = get_object_or_404(Group, slug=group_slug, timetable=timetable) |