Skip to content

Loading…

allow dashes in slugs of schedule names #18

Merged
merged 1 commit into from

2 participants

@trbs

Patch to allows dashes as part of the schedule section name name.

Seems to make it consistent with section_slugs in other symposion urls.py's.

@jtauber jtauber merged commit 465c170 into pinax:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 15, 2013
  1. @trbs
Showing with 5 additions and 5 deletions.
  1. +5 −5 symposion/schedule/urls.py
View
10 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"),
)
Something went wrong with that request. Please try again.