def search_models(request):
    model = get_object_or_404(Model, name=request.GET.get('tag', None))
    return HttpResponse('{{\n\t\t\t"id":{0},\n\t\t\t"tag":"{1}",\n\t\t\t"mesh_id":{2},\n\t\t\t"material_id":{3}\n\t\t}}'.format(model.id, model.name, model.mesh.id, model.material.id))
def search_models(request):
    model = get_object_or_404(Model, name=request.GET.get('tag', None))
    return HttpResponse('{{\n\t\t\t"id":{0},\n\t\t\t"tag":"{1}",\n\t\t\t"mesh_id":{2},\n\t\t\t"material_id":{3}\n\t\t}}'.format(model.id, model.name, model.mesh.id, model.material.id))