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.py14
1 files changed, 11 insertions, 3 deletions
diff --git a/app/gtd/views.py b/app/gtd/views.py
index 96c6387..dbf7587 100644
--- a/app/gtd/views.py
+++ b/app/gtd/views.py
@@ -2,7 +2,15 @@ from django.views.generic import UpdateView, DetailView, ListView, CreateView, D
from django.urls import reverse, reverse_lazy
from django.db.models import Q
-from .models import GTDNote, GTDProject, GTDOutcome, WiredNote, WiredPost
+from .models import (
+ GTDNote,
+ GTDProject,
+ GTDOutcome,
+ WiredNote,
+ WiredPost,
+ NoteType
+)
+
from .forms import (
GTDNoteCreateForm,
GTDNoteEditForm,
@@ -80,8 +88,8 @@ class GTDNoteTODOView(ListView):
# need to get wired notes and gtd notes and blend them by
# date created maybe?
if project:
- return GTDNote.objects.filter(status=1,note_type__in=[1,2],project__title=project)
- return GTDNote.objects.filter(status=1,note_type__in=[1,2])
+ return GTDNote.objects.filter(status__in=[0, 1], note_type__in=[NoteType.REMINDER, NoteType.ACTION],project__title=project)
+ return GTDNote.objects.filter(status__in=[0, 1], note_type__in=[NoteType.REMINDER, NoteType.ACTION])
def get_context_data(self, **kwargs):
context = super(GTDNoteTODOView, self).get_context_data(**kwargs)