Re: [sqlalchemy] after_insert mapper event: can't populate target.BACKREF.attr

2011-11-08 Thread Michael Bayer
On Nov 8, 2011, at 1:34 PM, sector119 wrote: > Hello. > > Why comments_after_insert_listener return None for target.report - backref > for TripReport.comments? when you do...what exactly? this is just a mapping, looks fine.Can you provide a fully working example please ? > > class

[sqlalchemy] after_insert mapper event: can't populate target.BACKREF.attr

2011-11-08 Thread sector119
Hello. Why comments_after_insert_listener return None for target.report - backref for TripReport.comments? class TripReportComment(Base): __tablename__ = 'trip_report_comments' id = Column(Integer, primary_key=True) content = Column(UnicodeText, nullable=False) report_id = Colum