Re: [sqlalchemy] Assertion error on deleting one end of many-to-many relation

2016-03-03 Thread Simon King
On Thu, Mar 3, 2016 at 8:27 AM, Lele Gaifax wrote: > Hi all, > > I have a simple m2m relationship between two entities, with a secondary > table > in the middle. > > From the left item I need to read both the right items and the middle > ones, so > I have two relationships

[sqlalchemy] Assertion error on deleting one end of many-to-many relation

2016-03-03 Thread Lele Gaifax
Hi all, I have a simple m2m relationship between two entities, with a secondary table in the middle. >From the left item I need to read both the right items and the middle ones, so I have two relationships on the left entity. When I delete one left item, I get the following exception:

[sqlalchemy] Assertion Error

2010-03-18 Thread rajasekhar911
Hi guys I got this weird AsserstionError and KeyError. It says it is ignored. The class Credential is a mapped as a relation to the parent class. credential=relation(Credential, \ primaryjoin=id == Credential.n_id,\ foreign_keys=[Credential.n_id],\

Re: [sqlalchemy] Assertion Error

2010-03-18 Thread Michael Bayer
rajasekhar911 wrote: Hi guys I got this weird AsserstionError and KeyError. It says it is ignored. The class Credential is a mapped as a relation to the parent class. credential=relation(Credential, \ primaryjoin=id == Credential.n_id,\