diff options
author | Dusty Phillips <buchuki@gmail.com> | 2008-10-10 18:00:16 -0400 |
---|---|---|
committer | Dusty Phillips <buchuki@gmail.com> | 2008-10-10 18:00:16 -0400 |
commit | d5cb786f44580c1389093e341d14e1407aac23f0 (patch) | |
tree | 5bc89a2f9d2b49b551e0bd30313a32ad6e5563af | |
parent | 4834003d92ebe610e79a64058f956a07675999d6 (diff) |
change of style, I decided I like to have a wrapper for all generic views
-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'), |