QUERY_TERMS in django 1.6 is set, not dict