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.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/app/gtd/views.py b/app/gtd/views.py
index db014b1..bb11030 100644
--- a/app/gtd/views.py
+++ b/app/gtd/views.py
@@ -8,7 +8,6 @@ from .forms import (
GTDNoteEditForm,
GTDProjectCreateForm,
GTDProjectUpdateForm,
- WiredNoteCreateForm,
WiredNoteEditForm,
WiredPostUpdateForm
)
@@ -46,7 +45,6 @@ class GTDNoteUpdateView(UpdateView):
return reverse('gtd:note-list', kwargs={"pk": self.object.project.pk})
-
class GTDNoteListView(ListView):
model = GTDNote
template_name = "gtd/note_list.html"
@@ -78,8 +76,14 @@ class GTDNoteTODOView(ListView):
template_name = "gtd/note_list.html"
def get_queryset(self):
+ # need to get wired notes and gtd notes and blend them by
+ # date created maybe?
return GTDNote.objects.filter(status=1)
+ def get_context_data(self, **kwargs):
+ context = super(GTDNoteTODOView, self).get_context_data(**kwargs)
+ return context
+
class GTDProjectCreateView(CreateView):
model = GTDProject
@@ -139,7 +143,7 @@ class GTDProjectDeleteView(DeleteView):
class WiredNoteCreateView(CreateView):
model = WiredNote
- form_class = WiredNoteCreateForm
+ fields = ['title', 'url', 'body_markdown', 'post']
template_name = "gtd/wirednote_form.html"
def get_success_url(self):