diff --git a/website/home/models.py b/website/home/models.py index 6abfba7..cb9f4cf 100644 --- a/website/home/models.py +++ b/website/home/models.py @@ -25,6 +25,7 @@ class HomePage(BasePage): context["latest_blog_post"] = ( BlogPostPage.objects.live() # type:ignore[attr-defined] .defer_streamfields() - .latest("date") + .order_by("-date") + .first() ) return context