Re: [sqlalchemy] how to find none-referenced objects

2015-09-21 Thread Mike Bayer
On 9/20/15 8:05 AM, c.bu...@posteo.jp wrote: Instances of 'A' can have many references to instances of 'B'. I want to find all 'B' instances that are not referenced by an 'A'. I am not sure if this is possible with SQLAlchemy-Query. And I am not sure if the backref() part in the code is

[sqlalchemy] how to find none-referenced objects

2015-09-20 Thread c.buhtz
Instances of 'A' can have many references to instances of 'B'. I want to find all 'B' instances that are not referenced by an 'A'. I am not sure if this is possible with SQLAlchemy-Query. And I am not sure if the backref() part in the code is needed for that. What do you think? a_b_relation=

Re: [sqlalchemy] how to find none-referenced objects

2015-09-20 Thread c.buhtz
On 2015-09-20 14:05 wrote: > Instances of 'A' can have many references to instances of 'B'. > I want to find all 'B' instances that are not referenced by an 'A'. I am sorry. Of course I looked into the docs before. But for me it is hard to get into its structure to find what I