From 17f9e53ef4413ca7836b949feba676696a67765a Mon Sep 17 00:00:00 2001 From: trbs Date: Tue, 15 Jan 2013 18:26:46 +0100 Subject: [PATCH] allow dashes in slugs of schedule names --- symposion/schedule/urls.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/symposion/schedule/urls.py b/symposion/schedule/urls.py index 9ddf1207..58890827 100644 --- a/symposion/schedule/urls.py +++ b/symposion/schedule/urls.py @@ -7,9 +7,9 @@ url(r"^list/$", "schedule_list", name="schedule_list"), url(r"^presentations.csv$", "schedule_list_csv", name="schedule_list_csv"), url(r"^presentation/(\d+)/$", "schedule_presentation_detail", name="schedule_presentation_detail"), - url(r"^(\w+)/$", "schedule_detail", name="schedule_detail"), - url(r"^(\w+)/edit/$", "schedule_edit", name="schedule_edit"), - url(r"^(\w+)/list/$", "schedule_list", name="schedule_list"), - url(r"^(\w+)/presentations.csv$", "schedule_list_csv", name="schedule_list_csv"), - url(r"^(\w+)/edit/slot/(\d+)/", "schedule_slot_edit", name="schedule_slot_edit"), + url(r"^([\w\-]+)/$", "schedule_detail", name="schedule_detail"), + url(r"^([\w\-]+)/edit/$", "schedule_edit", name="schedule_edit"), + url(r"^([\w\-]+)/list/$", "schedule_list", name="schedule_list"), + url(r"^([\w\-]+)/presentations.csv$", "schedule_list_csv", name="schedule_list_csv"), + url(r"^([\w\-]+)/edit/slot/(\d+)/", "schedule_slot_edit", name="schedule_slot_edit"), )