Use django-braces library; Replace search function with class-based view.