[sqlalchemy] session.delete() when not single parent

2011-07-08 Thread Kent
Suppose I have a related collection that is *not* single_parent and *not* cascade delete or delete_orphan. (The reasons are poor relational schema design, which I can't control.) I would like to programatically delete records occasionally, but session.delete(instance) throws AssertionError:

Re: [sqlalchemy] session.delete() when not single parent

2011-07-08 Thread Michael Bayer
On Jul 8, 2011, at 5:28 PM, Kent wrote: Suppose I have a related collection that is *not* single_parent and *not* cascade delete or delete_orphan. (The reasons are poor relational schema design, which I can't control.) I would like to programatically delete records occasionally, but