summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2023-09-22 10:17:55 -0400
committerluxagraf <sng@luxagraf.net>2023-09-22 10:17:55 -0400
commit9608b2965652e4d6ffb90ad38ff8a6b0701b8880 (patch)
tree3096ec456ebbf3ad4a2f89bf22660fb7e51391ba
parentacf110f7379a2776ee917441f24fb9f6f07f0ac1 (diff)
posts: added filter to exclude things already turned in
-rw-r--r--app/posts/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/posts/views.py b/app/posts/views.py
index 40368df..250611f 100644
--- a/app/posts/views.py
+++ b/app/posts/views.py
@@ -41,7 +41,7 @@ class PostTodoView(LoginRequiredMixin, ListView):
def get_queryset(self):
qs = Post.objects.filter(user=self.request.user)
- qs = qs.filter(Q(needs_update=True) | Q(is_live=0))
+ qs = qs.filter(Q(needs_update=True) | Q(is_live=0)).exclude(post_status=1)
unsorted_results = qs.all()
return sorted(unsorted_results, key=lambda a: a.days_overdue(), reverse=True)