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.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/gtd/views.py b/app/gtd/views.py
index c077d77..96c6387 100644
--- a/app/gtd/views.py
+++ b/app/gtd/views.py
@@ -56,12 +56,12 @@ class GTDNoteListView(ListView):
note_type_reverse = dict((v, k) for k, v in GTDNote.NOTE_TYPE)
note_type = note_type_reverse[self.kwargs['note_type'].title()]
if project:
- return GTDNote.objects.filter(note_type=note_type, project__title=project)
- return GTDNote.objects.filter(note_type=note_type)
+ return GTDNote.objects.filter(note_type=note_type, project__title=project, status__in=[0,1])
+ return GTDNote.objects.filter(note_type=note_type, status__in=[0,1])
else:
if project:
- return GTDNote.objects.filter(project__title=project)
- return GTDNote.objects.all()
+ return GTDNote.objects.filter(project__title=project, status__in=[0,1])
+ return GTDNote.objects.filter(status__in=[0,1])
def get_context_data(self, **kwargs):
context = super(GTDNoteListView, self).get_context_data(**kwargs)