diff options
author | Alban Gruin | 2017-10-02 15:23:27 +0200 |
---|---|---|
committer | Alban Gruin | 2017-10-02 15:23:27 +0200 |
commit | ef693288dab169d6a45cb0d02635187c21c3b0ab (patch) | |
tree | cee91b3601ebf8624c8952e64f29b6f28a347b9b /views.py | |
parent | 62c45f003e338440061c0d3e8356f2ab940e6edc (diff) |
Affichage de la semaine prochaine dans l’emploi du temps général le dimanche
Diffstat (limited to 'views.py')
-rw-r--r-- | views.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -21,7 +21,7 @@ from django.http import Http404 from django.shortcuts import get_object_or_404, render from .models import Timetable, Group, Course, Year -from .utils import get_current_week, get_week, group_courses +from .utils import get_current_week, get_current_or_next_week, get_week, group_courses def index(request): years = Year.objects.order_by("name") @@ -64,7 +64,7 @@ def group_list(request, year_slug, timetable_slug): return group_list_common(request, timetable, groups) def timetable(request, year_slug, timetable_slug, group_slug, year=None, week=None): - current_year, current_week = get_current_week() + current_year, current_week = get_current_or_next_week() is_old_timetable = False if year is None or week is None: |