From 6f5b74242bd9968853f224e67ce073e83014b344 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Thu, 16 Nov 2023 16:12:13 -0500 Subject: gtd: bug fix in project pages --- app/gtd/urls.py | 10 +++++----- app/gtd/views.py | 16 ++++++++-------- 2 files changed, 13 insertions(+), 13 deletions(-) (limited to 'app/gtd') 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 @@ -47,16 +47,16 @@ urlpatterns = [ views.GTDProjectCreateView.as_view(), name="project-create" ), + path( + r'project/', + views.GTDProjectDetailView.as_view(), + name="project-detail" + ), path( r'project/', views.GTDProjectListView.as_view(), name="project-list-type" ), - path( - r'project/', - views.GTDProjectDetailView.as_view(), - name="project-detail" - ), path( r'project//edit', views.GTDProjectUpdateView.as_view(), 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 -- cgit v1.2.3-70-g09d2