diff --git a/course_discovery/apps/api/v1/views/search.py b/course_discovery/apps/api/v1/views/search.py index f70de77ef3c..d03fa9cd3c0 100644 --- a/course_discovery/apps/api/v1/views/search.py +++ b/course_discovery/apps/api/v1/views/search.py @@ -20,8 +20,6 @@ from course_discovery.apps.course_metadata.choices import ProgramStatus from course_discovery.apps.course_metadata.models import Person -from course_discovery.apps.course_metadata.models import * - from course_discovery.apps.course_metadata.search_indexes import documents as search_documents from course_discovery.apps.course_metadata.search_indexes import serializers as search_indexes_serializers from course_discovery.apps.course_metadata.search_indexes.constants import LEARNER_PATHWAY_FEATURE_PARAM @@ -378,6 +376,9 @@ def get(self, request, *_args, **_kwargs): type: List of string """ query = request.query_params.get('q') + import pdb + pdb.set_trace() + if not query: raise ValidationError("The 'q' querystring parameter is required for searching.") words = query.split()