Re: [sqlalchemy] Preventing mapper updates from triggering a "before_update" event?

2016-10-13 Thread Mike Bayer
On 10/13/2016 11:59 AM, Colton Allen wrote: Hi all, I have a primary model with a "before_update" event and a secondary model with a foreign key to the primary model. When I create a secondary model, the primary model's "before_update" event is triggered. I believe this is because the

[sqlalchemy] Preventing mapper updates from triggering a "before_update" event?

2016-10-13 Thread Colton Allen
Hi all, I have a primary model with a "before_update" event and a secondary model with a foreign key to the primary model. When I create a secondary model, the primary model's "before_update" event is triggered. I believe this is because the backref is being updated. Can I prevent this