diff options
-rw-r--r-- | urls.py | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -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'), |