[sqlalchemy] onupdate with ORM

2015-09-04 Thread Pavel S
Hi, I have declarative Model with couple of columns, one of them is lastAccess = Column('LastAccess', DateTime, nullable=False, onupdate=datetime.datetime.utcnow) I fetch the object from database like the following: obj = ScopedSession.query(Model).get(something) Later in code I commit the

Re: [sqlalchemy] onupdate with ORM

2015-09-04 Thread Mike Bayer
On 9/4/15 10:19 AM, Pavel S wrote: Hi, I have declarative Model with couple of columns, one of them is lastAccess = Column('LastAccess', DateTime, nullable=False, onupdate=datetime.datetime.utcnow) I fetch the object from database like the following: obj =