aboutsummaryrefslogtreecommitdiff
path: root/urls.py
diff options
context:
space:
mode:
authorAlban Gruin2017-09-07 23:12:57 +0200
committerAlban Gruin2017-09-07 23:12:57 +0200
commit5767fe2b49858dd8174193ffa8c2e8b3fda1fc6c (patch)
tree5176298f82739e146621f8661bdf4a01f9062b0e /urls.py
parentdaa35602eeee6b15cea2b4e92a0556de2a1b4905 (diff)
Utilisation du modèle Year où nécessaire
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 5731b44..4803b6a 100644
--- a/urls.py
+++ b/urls.py
@@ -19,8 +19,8 @@ from . import feeds, views
urlpatterns = [
url(r"^$", views.index, name="index"),
- url(r"^(?P<year>[-\w]+)/$", views.mention_list, name="mentions"),
- url(r"^(?P<year>[-\w]+)/(?P<timetable_slug>[-\w]+)/$", views.group_list, name="groups"),
+ 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<timetable_slug>[-\w]+)/(?P<group_slug>[-\w]+)/$", views.timetable, name="timetable"),
url(r"^(?P<timetable_slug>[-\w]+)/(?P<group_slug>[-\w]+)/calendar.ics$", feeds.IcalFeed(), name="ics"),
url(r"^(?P<timetable_slug>[-\w]+)/(?P<group_slug>[-\w]+)/(?P<year>[0-9]{4})/(?P<week>[0-4]?[0-9]|5[0-3])/$", views.timetable, name="timetable"),