1product_obj = products.all()[0]
2
3db.session.expunge(product_obj) # expunge the object from session
4make_transient(product_obj) # http://docs.sqlalchemy.org/en/rel_1_1/orm/session_api.html#sqlalchemy.orm.session.make_transient
5
6product_obj.product_uid = 'something'
7db.session.add(product_obj)
8