updated search/views.py for new course model