Re: [sqlalchemy] Two classes linked to the same backref attribute in a third classe

2017-11-15 Thread Mike Bayer
Oh weird, it must have gotten erased before I pressed send...whoops! On Nov 15, 2017 4:03 AM, "Simon King" wrote: > On Wed, Nov 15, 2017 at 12:10 AM, Mike Bayer > wrote: > > On Tue, Nov 14, 2017 at 2:58 PM, Olaf wrote: >

Re: [sqlalchemy] Two classes linked to the same backref attribute in a third classe

2017-11-15 Thread Simon King
On Wed, Nov 15, 2017 at 12:10 AM, Mike Bayer wrote: > On Tue, Nov 14, 2017 at 2:58 PM, Olaf wrote: >> Hello everybody. >> >> Is it possible to have the following relationships between three classes >> (Animal, Car, Description) ? >> >> * An animal

Re: [sqlalchemy] Two classes linked to the same backref attribute in a third classe

2017-11-14 Thread Mike Bayer
On Tue, Nov 14, 2017 at 2:58 PM, Olaf wrote: > Hello everybody. > > Is it possible to have the following relationships between three classes > (Animal, Car, Description) ? > > * An animal has an attribute description > * A car has an attribute description > * Each

[sqlalchemy] Two classes linked to the same backref attribute in a third classe

2017-11-14 Thread Olaf
Hello everybody. Is it possible to have the following relationships between three classes (Animal, Car, Description) ? * An animal has an attribute description * A car has an attribute description * Each description contains his parent as an attribut. So parent can be a car or an animal Here