#NEWLINE# def search_suggestions( request ) : #NEWLINE# #INDENT# if ( 'qs' in request . GET ) : #NEWLINE# #INDENT# qs = request . GET [ 'qs' ] . replace ( '+' , ' ' ) #NEWLINE# return HttpResponse ( json_encode ( list ( Suggestion . objects . filter ( text__icontains = qs ) ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return http_badreq ( 'Missing required parameter qs' )