diff --git a/article/models.py b/article/models.py index 7c178c11f..276045a21 100644 --- a/article/models.py +++ b/article/models.py @@ -416,7 +416,12 @@ class Meta: #-----Manager models----- class ArticlePageManager(PageManager): - + + def get_queryset(self): + return super() \ + .get_queryset() \ + .prefetch_related('featured_media__image') + def from_section(self, section_slug='', section_root=None) -> QuerySet: from .models import ArticlePage from section.models import SectionPage