diff --git a/cms/models.py b/cms/models.py index 7130781175..64f99aebb6 100644 --- a/cms/models.py +++ b/cms/models.py @@ -259,13 +259,9 @@ def get_context(self, request, *args, **kwargs): .select_related("thumbnail_image") ) - featured_product = ProgramPage.objects.filter( - featured=True, program__live=True - ).select_related("program", "thumbnail_image").prefetch_related( - "program__courses__courseruns" - ) or CoursePage.objects.filter( - featured=True, course__live=True - ) + featured_product = program_page_qset.filter( + featured=True + ) or course_page_qset.filter(featured=True) all_pages, program_pages, course_pages = filter_and_sort_catalog_pages( program_page_qset, course_page_qset, diff --git a/cms/templates/partials/card_details_top.html b/cms/templates/partials/card_details_top.html index 9dfa7a3fd7..3e644596b0 100644 --- a/cms/templates/partials/card_details_top.html +++ b/cms/templates/partials/card_details_top.html @@ -5,7 +5,7 @@ {% if courseware_page.thumbnail_image %} {% else %} - + {% endif %} diff --git a/cms/templates/partials/courseware-carousel-base.html b/cms/templates/partials/courseware-carousel-base.html index e475e9aeb4..c36a9b2010 100644 --- a/cms/templates/partials/courseware-carousel-base.html +++ b/cms/templates/partials/courseware-carousel-base.html @@ -5,7 +5,7 @@ {% if courseware_page.thumbnail_image %} {% else %} - + {% endif %} {{ courseware_page.title }}
{{ courseware_page.subhead }}
diff --git a/cms/templates/partials/faculty-carousel.html b/cms/templates/partials/faculty-carousel.html index 85fa6c469d..670690c378 100644 --- a/cms/templates/partials/faculty-carousel.html +++ b/cms/templates/partials/faculty-carousel.html @@ -11,7 +11,7 @@