Re: [sqlalchemy] Is this a valid inheritance configuration ?

2017-06-20 Thread yoch . melka
Thank you Mike ! Le mardi 20 juin 2017 21:23:01 UTC+3, Mike Bayer a écrit : > > > > On 06/20/2017 02:08 PM, yoch@gmail.com wrote: > > Hi, > > > > I wish to have a two-levels inheritance, but I don't know how to > proceed. > > The docs says that "only one discriminator column or SQL

Re: [sqlalchemy] Is this a valid inheritance configuration ?

2017-06-20 Thread mike bayer
On 06/20/2017 02:08 PM, yoch.me...@gmail.com wrote: Hi, I wish to have a two-levels inheritance, but I don't know how to proceed. The docs says that "only one discriminator column or SQL expression may be configured for the entire inheritance hierarchy". I tried with this example (mixing

[sqlalchemy] Is this a valid inheritance configuration ?

2017-06-20 Thread yoch . melka
Hi, I wish to have a two-levels inheritance, but I don't know how to proceed. The docs says that "only one discriminator column or SQL expression may be configured for the entire inheritance hierarchy". I tried with this example (mixing joined and single inheritances) : class Person(Base):