diff options
author | luxagraf <sng@luxagraf.net> | 2023-09-22 10:17:55 -0400 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2023-09-22 10:17:55 -0400 |
commit | 9608b2965652e4d6ffb90ad38ff8a6b0701b8880 (patch) | |
tree | 3096ec456ebbf3ad4a2f89bf22660fb7e51391ba /app/posts/views.py | |
parent | acf110f7379a2776ee917441f24fb9f6f07f0ac1 (diff) |
posts: added filter to exclude things already turned in
Diffstat (limited to 'app/posts/views.py')
-rw-r--r-- | app/posts/views.py | 2 |
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) |