summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-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)