diff options
author | lxf <sng@luxagraf.net> | 2025-05-31 13:10:29 -0500 |
---|---|---|
committer | lxf <sng@luxagraf.net> | 2025-05-31 13:10:29 -0500 |
commit | 963f7d4d32da3d274795d02a91e5dea1b9f36e86 (patch) | |
tree | f309a54cb4848b3d1505c188bfc6b569e94237ad /app/pages/views.py | |
parent | d31e91f543ccd8d2282c3c365ed5350b0e98c43f (diff) |
Diffstat (limited to 'app/pages/views.py')
-rw-r--r-- | app/pages/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/pages/views.py b/app/pages/views.py index d4c4880..4becff8 100644 --- a/app/pages/views.py +++ b/app/pages/views.py @@ -35,7 +35,7 @@ class HomePageList(DetailView): def get_context_data(self, **kwargs): # Call the base implementation first to get a context context = super(HomePageList, self).get_context_data(**kwargs) - context['object_list'] = Post.objects.filter(post_type=PostType.JRNL).filter(status__exact=1).order_by('-pub_date').exclude().select_related('location').select_related('featured_image')[1:9] + context['object_list'] = Post.objects.filter(post_type__in=[PostType.JRNL,PostType.ESSAY, PostType.PHOTO_ESSAY]).filter(status__exact=1).order_by('-pub_date').exclude().select_related('location').select_related('featured_image')[1:9] context['location'] = LuxCheckIn.objects.latest() return context |