def guardarPDF(pdf, _id):
    propia = Propia.query.filter_by(id=_id).first()
    if (pdf is not None):
        file = pdf
        print(pdf)
        filename = secure_filename(file.filename)
        file.save(os.path.join(ABSOLUTE_PATH_TO_YOUR_PDF_FOLDER, filename))
        propia.pdf = filename
        db.session.add(propia)
def guardarPDF(pdf, _id):
    propia = Propia.query.filter_by(id=_id).first()
    if (pdf is not None):
        file = pdf
        print(pdf)
        filename = secure_filename(file.filename)
        file.save(os.path.join(ABSOLUTE_PATH_TO_YOUR_PDF_FOLDER, filename))
        propia.pdf = filename
        db.session.add(propia)