diff options
author | Dusty Phillips <buchuki@gmail.com> | 2008-07-09 03:20:06 +0200 |
---|---|---|
committer | Dusty Phillips <buchuki@gmail.com> | 2008-07-09 03:20:06 +0200 |
commit | e354b32898e80fef7b1bc39113c446836790fb99 (patch) | |
tree | 08dd3ed7cc26d8badda03d96ee63b1464d5de547 /todolists | |
parent | cb5b8a5ccddd575960efae92f98d8e8448a893e2 (diff) | |
download | archweb-e354b32898e80fef7b1bc39113c446836790fb99.tar.gz archweb-e354b32898e80fef7b1bc39113c446836790fb99.tar.xz |
fix up permissions on todolists
Diffstat (limited to 'todolists')
-rw-r--r-- | todolists/views.py | 4 |
1 files changed, 2 insertions, 2 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: |