summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDusty Phillips <buchuki@gmail.com>2008-10-10 18:00:16 -0400
committerDusty Phillips <buchuki@gmail.com>2008-10-10 18:00:16 -0400
commitd5cb786f44580c1389093e341d14e1407aac23f0 (patch)
tree5bc89a2f9d2b49b551e0bd30313a32ad6e5563af
parent4834003d92ebe610e79a64058f956a07675999d6 (diff)
change of style, I decided I like to have a wrapper for all generic views
-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'),