Thanks for the quick response Michael. One more question, if you don't mind:
I updated my gist to demonstrate this problem: https://gist.github.com/chadrik/08617b6ed4d9cbacd93c To sum it up, I added a one-to-many relationships between Books and Chapters, but the relationships which show items added in their history within the after_flush event vary depending on how the update is performed. For example, if the relationship is updated through its backref, like this: book1.chapters.append(Chapter(title='Intro to Book1')) then relationships on both side show values added in their history: Chapter('Intro to Book1') 'book' added: [Book(1)] Book(1) 'chapters' added: [Chapter('Intro to Book1')] but if the relationship is updated like this: Chapter(title='Intro to Book2', book=book2) then only one side shows that a value was added: Chapter('Intro to Book2') 'book' added: [Book(2)] Book(2) no relationships updated in this latter case, is there a reliable way to know what items have been added to Book.chapters within the after_flush event? thanks, chad -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sqlalchemy+unsubscr...@googlegroups.com. To post to this group, send email to sqlalchemy@googlegroups.com. Visit this group at http://groups.google.com/group/sqlalchemy. For more options, visit https://groups.google.com/d/optout.