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.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/app/gtd/views.py b/app/gtd/views.py
index 709766e..cdbd29e 100644
--- a/app/gtd/views.py
+++ b/app/gtd/views.py
@@ -223,7 +223,7 @@ class WiredPostListView(ListView):
template_name = 'gtd/wiredpost_table.html'
def get_queryset(self):
- return WiredPost.objects.all().order_by("-needs_update")
+ return WiredPost.objects.filter(post_type=1,author="Scott Gilbertson").order_by("-needs_update")
class WiredPostUpdateOverdueView(RedirectView):
@@ -296,6 +296,10 @@ class WiredGenerateDealCodeView(TemplateView):
template_name = "gtd/deal_code.html"
+class WiredGenerateREIDealCodeView(TemplateView):
+ template_name = "gtd/reideal_code.html"
+
+
class GTDNoteDeleteView(DeleteView):
# specify the model you want to use
model = GTDNote
@@ -349,7 +353,7 @@ class UpdateDateView(RedirectView):
query_string = True
def get_redirect_url(self, *args, **kwargs):
- for post in WiredPost.objects.all():
+ for post in WiredPost.objects.filter(post_type=1,author="Scott Gilbertson"):
if post.url:
content = requests.get(post.url)
soup = BeautifulSoup(content.text, 'html.parser')
@@ -358,4 +362,3 @@ class UpdateDateView(RedirectView):
post.date_last_pub = time
post.save()
return super().get_redirect_url(*args, **kwargs)
-