Update views.py

Restored the original code for search results