aboutsummaryrefslogtreecommitdiff
path: root/urls.py
diff options
context:
space:
mode:
authorAlban Gruin2018-01-17 12:16:09 +0100
committerAlban Gruin2018-01-17 12:16:09 +0100
commitb55297c4d0de64501a6baf3b1f255210de492e97 (patch)
tree8448ddb0b8896878d61161462e4e08abea36a358 /urls.py
parent8f9c5eb32c6cf27aa84d1cbf14b7aaaa00acc0b9 (diff)
Correction d’URLs
Diffstat (limited to 'urls.py')
-rw-r--r--urls.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/urls.py b/urls.py
index 4c4abe3..22011c4 100644
--- a/urls.py
+++ b/urls.py
@@ -20,8 +20,8 @@ urlpatterns = [
url(r"^$", views.index, name="index"),
url(r"^pages/", include("django.contrib.flatpages.urls")),
url(r"^salles/$", views.rooms, name="rooms"),
- url(r"^salles/(?P<room_slug>[-\w]+)$", views.room_timetable, name="room-timetable"),
- url(r"^salles/(?P<room_slug>[-\w]+)/(?P<year>[0-9]{4})/(?P<week>[0-4]?[0-9]|5[0-3])/$", views.room_timetable, name="room-timetable"),
+ url(r"^salles/(?P<room_slug>[-\w]+)/$", views.room_timetable, name="room-timetable"),
+ url(r"^salles/(?P<room_slug>[-\w]+)/(?P<year>[0-9]{4})/(?P<week>[0-4]?[0-9]|5[0-3])$", views.room_timetable, name="room-timetable"),
url(r"^(?P<year_slug>[-\w]+)/$", views.mention_list, name="mentions"),
url(r"^(?P<year_slug>[-\w]+)/(?P<timetable_slug>[-\w]+)/$", views.group_list, name="groups"),
url(r"^(?P<year_slug>[-\w]+)/(?P<timetable_slug>[-\w]+)/(?P<group_slug>[-\w]+)/$", views.timetable, name="timetable"),