I just tried cleaning up at `after_transaction_end` but the whole history 
stopped working.


 It seems like `after_transaction_create`/`after_transaction_end` surrounds 
the loading of a one-to-many relationship.Thus, when `after_commit` 
happened, the `history_objects` dict had being emptied and no history was 
created.


Should I not use `after_transaction_end` and go back to `after_commit` and 
perhaps `after_rollback` (or maybe `after_soft_rollback`) ?


The thing is that I only need to add the history-objects to the session at 
commit time.


BTW - This might be related to 
https://groups.google.com/forum/#!topic/sqlalchemy/g8AA5ofChTY 

... I see that position is being set during the nested-transaction 


-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.

Reply via email to