updated search/views.py for new professor model (manytomany relationship with departments)