Commit b9922f7f authored by 段英荣's avatar 段英荣

modify view

parent 7f579241
......@@ -26,10 +26,13 @@ def auto_complete(request):
"""
q = request.GET.get('q', '').strip()
logging.info("duan add,q is:%s" % str(q).encode("utf-8"))
if not q:
return json_http_response({'error': 0, 'data': []})
logging.info("duan add,q is:%s" % str(q).encode("utf-8"))
data = get_suggest_tips(q)
result = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment