summaryrefslogtreecommitdiff
path: root/todolists/urls.py
blob: 2612a52ef7242b81d0925d41a87986346946a239 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from django.conf.urls.defaults import patterns
from django.contrib.auth.decorators import permission_required

from .views import DeleteTodolist

urlpatterns = patterns('todolists.views',
    (r'^$',                       'todolist_list'),
    (r'^(\d+)/$',                 'view'),
    (r'^add/$',                   'add'),
    (r'^edit/(?P<list_id>\d+)/$', 'edit'),
    (r'^flag/(\d+)/(\d+)/$',      'flag'),
    (r'^delete/(?P<pk>\d+)/$',
        permission_required('main.delete_todolist')(DeleteTodolist.as_view())),
)

# vim: set ts=4 sw=4 et: