diff --git a/search/views.py b/search/views.py index cab28d9..41d2f91 100644 --- a/search/views.py +++ b/search/views.py @@ -2,6 +2,7 @@ from django.core.paginator import EmptyPage, PageNotAnInteger, Paginator from django.template.response import TemplateResponse from wagtail.models import Page +from home.models import CoursePage # To enable logging of search queries for use with the "Promoted search results" module # @@ -20,7 +21,7 @@ def search(request): # Search if search_query: - search_results = Page.objects.live().search(search_query) + search_results = CoursePage.objects.live().search(search_query) # To log this query for use with the "Promoted search results" module: