summaryrefslogtreecommitdiff
path: root/app/gtd/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/gtd/views.py')
-rw-r--r--app/gtd/views.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/app/gtd/views.py b/app/gtd/views.py
index 06728f0..2fb419e 100644
--- a/app/gtd/views.py
+++ b/app/gtd/views.py
@@ -102,6 +102,13 @@ class GTDProjectListView(ListView):
return context
+class GTDProjectDeleteView(DeleteView):
+ # specify the model you want to use
+ model = GTDProject
+ success_url ="/gtd/projects"
+ template_name = "gtd/confirm_delete.html"
+
+
class GTDNoteTODOView(ListView):
model = GTDNote
template_name = "gtd/note_list.html"
@@ -162,6 +169,13 @@ class WiredNoteListView(ListView):
return context
+class WiredNoteDeleteView(DeleteView):
+ # specify the model you want to use
+ model = WiredNote
+ success_url ="/gtd/wirednote"
+ template_name = "gtd/confirm_delete.html"
+
+
class WiredPostListView(ListView):
model = WiredPost
template_name = 'gtd/post_table.html'
@@ -204,6 +218,7 @@ class WiredPostNotesView(DetailView):
context['notes'] = self.get_object().wirednote_set.all().order_by("status")
return context
+
class WiredPostUpdateView(UpdateView):
model = WiredPost
form_class = WiredPostUpdateForm
@@ -219,3 +234,8 @@ class WiredPostUpdateView(UpdateView):
return reverse('gtd:posts-detail', kwargs={"pk": self.object.pk})
+class GTDNoteDeleteView(DeleteView):
+ # specify the model you want to use
+ model = GTDNote
+ success_url ="/gtd/notes"
+ template_name = "gtd/confirm_delete.html"