summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--todolists/views.py4
-rw-r--r--urls.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/todolists/views.py b/todolists/views.py
index 7095b14..65d0a7c 100644
--- a/todolists/views.py
+++ b/todolists/views.py
@@ -54,7 +54,7 @@ def list(request):
list=l.id,complete=False).count() == 0
return render_response(request, 'todolists/list.html', {'lists':lists})
-@permission_required('todolists.add_todolist')
+@permission_required('main.add_todolist')
def add(request):
if request.POST:
form = TodoListForm(request.POST)
@@ -79,7 +79,7 @@ def add(request):
}
return render_response(request, 'general_form.html', page_dict)
-@permission_required('todolists.change_todolist')
+@permission_required('main.change_todolist')
def edit(request, list_id):
todo_list = get_object_or_404(Todolist, id=list_id)
if request.POST:
diff --git a/urls.py b/urls.py
index 689af44..5ba6ff7 100644
--- a/urls.py
+++ b/urls.py
@@ -25,7 +25,7 @@ urlpatterns = patterns('',
(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(
- 'delete_todo_list')(delete_object), {
+ 'main.delete_todolist')(delete_object), {
'model': Todolist,
'template_name': 'todolists/todolist_confirm_delete.html',
'post_delete_redirect': '/todo/'