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.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/app/gtd/views.py b/app/gtd/views.py
index cdbd29e..4bc2170 100644
--- a/app/gtd/views.py
+++ b/app/gtd/views.py
@@ -3,6 +3,8 @@ from django.views.generic.base import TemplateView
from django.urls import reverse, reverse_lazy
from django.db.models import Q
+from taxonomy.models import Category
+
from .models import (
GTDNote,
GTDProject,
@@ -300,6 +302,16 @@ class WiredGenerateREIDealCodeView(TemplateView):
template_name = "gtd/reideal_code.html"
+class OutdoorPlanningView(ListView):
+ model = WiredPost
+ template_name = 'gtd/wiredpost_table.html'
+
+ def get_queryset(self):
+ cat = Category.objects.get(name="Outdoor")
+ return WiredPost.objects.filter(category=cat).order_by("-needs_update")
+
+
+
class GTDNoteDeleteView(DeleteView):
# specify the model you want to use
model = GTDNote