código para inserir

a guest Jan 16th, 2019 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. image = Image(nome = nome_foto,image = basedir+"/"+nome_foto,data_foto_no_device = foto["time_stamp_foto"],observacao = foto["observacao"],empresa_id = empresa_info.get("id_api"),user_id = user_info.get("id_api"), categoria_id =foto["categoria"].get("id_api"),protocolo_id=protocolo_id)
  2. if foto["meio_pagamento"] != "":
  3.    image.meio_pagamento_id = foto["meio_pagamento"].get("id_api")
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand