def qbe_autocomplete(request): nodes = None if request.is_ajax() and request.POST: models = request.POST.get('models', []).split(",") nodes = autocomplete_graph(admin_site, models) json_nodes = simplejson.dumps(nodes) return HttpResponse(json_nodes, mimetype="application/json")
def qbe_autocomplete(request): nodes = None if request.is_ajax() and request.POST: models = request.POST.get('models', []).split(",") nodes = autocomplete_graph(admin_site, models)