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