[sqlalchemy] SA Obj Passed by Event Losing Relationship Column

2011-12-26 Thread jerryji
I noticed that the target objects passed in SA event are stripped off relationship columns. E.g., relationship column Post.user -- class User(Base): __tablename__ = 'users' user_id = Column(Unicode(32), primary_key=True) user_name = Column(Unicode(32)) ... class Post(Base):

Re: [sqlalchemy] SA Obj Passed by Event Losing Relationship Column

2011-12-26 Thread Michael Bayer
On Dec 26, 2011, at 7:34 AM, jerryji wrote: I noticed that the target objects passed in SA event are stripped off relationship columns. E.g., relationship column Post.user -- class User(Base): __tablename__ = 'users' user_id = Column(Unicode(32), primary_key=True) user_name