When receiving request, here are the results below. If the query is '', it will display "with blank". If the query!=None, it displays "with query". But, if the query is None, this never displays because the fact that you are asking for a q/query will always mean that the q/query is blank.