I have some instance of ORM class.
session = Session()
elems = session.query(Class)
cur_elem = elems.filter(Class.id == 1).first()
cur_elem.field = "NewValue"
How i can reject this change (or any other changes) only for that object before commit?
I have some instance of ORM class.
session = Session()
elems = session.query(Class)
cur_elem = elems.filter(Class.id == 1).first()
cur_elem.field = "NewValue"
How i can reject this change (or any other changes) only for that object before commit?