diff --git a/website/blog/models.py b/website/blog/models.py index 1be8a3c..c6dd8e0 100644 --- a/website/blog/models.py +++ b/website/blog/models.py @@ -19,7 +19,11 @@ class BlogListPage(BaseContentMixin, BasePage): # type: ignore[misc] def get_context(self, request: HttpRequest) -> dict: context = super().get_context(request) context["child_pages"] = ( - self.get_children().live().specific().select_related("hero_image") + self.get_children() + .live() + .specific() + .select_related("hero_image") + .prefetch_related("tags") ) return context