summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--urls.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/urls.py b/urls.py
index 741524dc..6cff8c35 100644
--- a/urls.py
+++ b/urls.py
@@ -31,12 +31,8 @@ urlpatterns = patterns('',
(r'^todo/add/$', 'archweb_dev.todolists.views.add'),
(r'^todo/edit/(?P<list_id>\d+)/$', 'archweb_dev.todolists.views.edit'),
(r'^todo/flag/(\d+)/(\d+)/$', 'archweb_dev.todolists.views.flag'),
- (r'^todo/delete/(?P<object_id>\d+)/$', permission_required(
- 'main.delete_todolist')(delete_object), {
- 'model': Todolist,
- 'template_name': 'todolists/todolist_confirm_delete.html',
- 'post_delete_redirect': '/todo/'
- }),
+ (r'^todo/delete/(?P<object_id>\d+)/$',
+ 'archweb_dev.todolists.views.delete_todolist'),
(r'^todo/$', 'archweb_dev.todolists.views.list'),
(r'^news/(\d+)/$', 'archweb_dev.news.views.view'),