diff options
Diffstat (limited to 'app/gtd/urls.py')
-rw-r--r-- | app/gtd/urls.py | 60 |
1 files changed, 43 insertions, 17 deletions
diff --git a/app/gtd/urls.py b/app/gtd/urls.py index 95d7acf..ec4c474 100644 --- a/app/gtd/urls.py +++ b/app/gtd/urls.py @@ -8,7 +8,7 @@ urlpatterns = [ path( r'todo', views.GTDNoteTODOView.as_view(), - name="note-list" + name="note-todo" ), path( r'notes', @@ -17,7 +17,7 @@ urlpatterns = [ name="note-list" ), path( - r'notes/create', + r'note/create', views.GTDNoteCreateView.as_view(), name="note-create" ), @@ -39,30 +39,36 @@ urlpatterns = [ path( r'projects', views.GTDProjectListView.as_view(), + {'project_type':None}, name="project-list" ), path( - r'projects/create', + r'project/create', views.GTDProjectCreateView.as_view(), name="project-create" ), path( - r'projects/<pk>', + r'project/<str:project_type>', + views.GTDProjectListView.as_view(), + name="project-list-type" + ), + path( + r'project/<pk>', views.GTDProjectDetailView.as_view(), name="project-detail" ), path( - r'projects/<pk>/edit', + r'project/<pk>/edit', views.GTDProjectUpdateView.as_view(), name="project-edit" ), path( - r'projects/<pk>/delete', + r'project/<pk>/delete', views.GTDProjectDeleteView.as_view(), name="project-delete" ), path( - r'wirednote', + r'wirednotes', views.WiredNoteListView.as_view(), {'status':None}, name="wirednote-list" @@ -88,28 +94,48 @@ urlpatterns = [ name="wirednote-delete" ), path( - r'post', + r'wiredposts', views.WiredPostListView.as_view(), - name="post-list" + name="wiredpost-list" ), path( - r'post/new', + r'wiredpost/create', views.WiredPostNewView.as_view(), - name="post-create" + name="wiredpost-create" ), path( - r'post/<pk>/edit', + r'wiredpost/<pk>/edit', views.WiredPostUpdateView.as_view(), - name="post-edit" + name="wiredpost-edit" ), path( - r'post/todo', + r'wiredpost/todo', views.WiredPostTodoView.as_view(), - name="post-todo" + name="wiredpost-todo" ), path( - r'<pk>/notes', + r'wiredpost/<pk>/notes', views.WiredPostNotesView.as_view(), - name="post-detail" + name="wiredpost-detail" + ), + path( + r'outcomes', + views.GTDOutcomeListView.as_view(), + name="outcome-list" + ), + path( + r'outcome/create', + views.GTDOutcomeCreateView.as_view(), + name="outcome-create" + ), + path( + r'outcome/<pk>/edit', + views.GTDOutcomeUpdateView.as_view(), + name="outcome-edit" + ), + path( + r'outcome/<pk>/delete', + views.GTDOutcomeDeleteView.as_view(), + name="outcome-delete" ), ] |