From 10c3cf3b9fe30ea951e5ad2eaf592108a3301db4 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Sat, 9 Mar 2024 08:13:03 -0600 Subject: posts: simplified post_types --- app/posts/views/range_views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/posts/views') diff --git a/app/posts/views/range_views.py b/app/posts/views/range_views.py index dc09cee..b358051 100644 --- a/app/posts/views/range_views.py +++ b/app/posts/views/range_views.py @@ -24,7 +24,7 @@ class RangeListView(PaginatedListView): """ model = Post template_name = "posts/range_list.html" - queryset = Post.objects.filter(post_type__in=[PostType.ESSAY,PostType.FILM,PostType.CRAFT,PostType.REVIEW],status=1).order_by('-pub_date') + queryset = Post.objects.filter(post_type__in=[PostType.ESSAY,PostType.FILM],status=1).order_by('-pub_date') def get_context_data(self, **kwargs): context = super(RangeListView, self).get_context_data(**kwargs) -- cgit v1.2.3-70-g09d2