removed slugless URL names
This commit is contained in:
parent
fad4c7d4dd
commit
d354e2b017
2 changed files with 4 additions and 4 deletions
|
@ -2,9 +2,9 @@ from django.conf.urls.defaults import url, patterns
|
||||||
|
|
||||||
|
|
||||||
urlpatterns = patterns("symposion.schedule.views",
|
urlpatterns = patterns("symposion.schedule.views",
|
||||||
url(r"^$", "schedule_detail", name="schedule_detail_slugless"),
|
url(r"^$", "schedule_detail", name="schedule_detail"),
|
||||||
url(r"^edit/$", "schedule_edit", name="schedule_edit_slugless"),
|
url(r"^edit/$", "schedule_edit", name="schedule_edit"),
|
||||||
url(r"^list/$", "schedule_list", name="schedule_list_slugless"),
|
url(r"^list/$", "schedule_list", name="schedule_list"),
|
||||||
url(r"^presentation/(\d+)/$", "schedule_presentation_detail", name="schedule_presentation_detail"),
|
url(r"^presentation/(\d+)/$", "schedule_presentation_detail", name="schedule_presentation_detail"),
|
||||||
url(r"^(\w+)/$", "schedule_detail", name="schedule_detail"),
|
url(r"^(\w+)/$", "schedule_detail", name="schedule_detail"),
|
||||||
url(r"^(\w+)/edit/$", "schedule_edit", name="schedule_edit"),
|
url(r"^(\w+)/edit/$", "schedule_edit", name="schedule_edit"),
|
||||||
|
|
|
@ -89,7 +89,7 @@ def schedule_slot_edit(request, slug, slot_pk):
|
||||||
slot.unassign()
|
slot.unassign()
|
||||||
else:
|
else:
|
||||||
slot.assign(presentation)
|
slot.assign(presentation)
|
||||||
return redirect("schedule_edit_slugless")
|
return redirect("schedule_edit")
|
||||||
else:
|
else:
|
||||||
form = SlotEditForm(content=content)
|
form = SlotEditForm(content=content)
|
||||||
ctx = {
|
ctx = {
|
||||||
|
|
Loading…
Reference in a new issue