summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/gtd/urls.py10
-rw-r--r--app/gtd/views.py16
2 files changed, 13 insertions, 13 deletions
diff --git a/app/gtd/urls.py b/app/gtd/urls.py
index 837ee66..44c1a32 100644
--- a/app/gtd/urls.py
+++ b/app/gtd/urls.py
@@ -48,16 +48,16 @@ urlpatterns = [
name="project-create"
),
path(
+ r'project/<int:pk>',
+ views.GTDProjectDetailView.as_view(),
+ name="project-detail"
+ ),
+ path(
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'project/<pk>/edit',
views.GTDProjectUpdateView.as_view(),
name="project-edit"
diff --git a/app/gtd/views.py b/app/gtd/views.py
index a3b7eab..2a95925 100644
--- a/app/gtd/views.py
+++ b/app/gtd/views.py
@@ -57,6 +57,14 @@ class GTDNoteListView(ListView):
return context
+class GTDNoteTODOView(ListView):
+ model = GTDNote
+ template_name = "gtd/note_list.html"
+
+ def get_queryset(self):
+ return GTDNote.objects.filter(status=1)
+
+
class GTDProjectCreateView(CreateView):
model = GTDProject
form_class = GTDProjectCreateForm
@@ -116,14 +124,6 @@ class GTDProjectDeleteView(DeleteView):
template_name = "gtd/confirm_delete.html"
-class GTDNoteTODOView(ListView):
- model = GTDNote
- template_name = "gtd/note_list.html"
-
- def get_queryset(self):
- return GTDNote.objects.filter(status=1)
-
-
class WiredNoteCreateView(CreateView):
model = WiredNote
form_class = WiredNoteCreateForm