Re: [sqlalchemy] How to define relationship in inherited declarative class?

2016-08-21 Thread Mike Bayer
Actually yeah, you are correct on that. I was trying to have separate backrefs on UserKeywprd and this was part of that. On Sunday, August 21, 2016, Tom Kedem wrote: > I see. I think I can do okay without UserKeyword.user, as you suggested. > Seems to work. > Though is it

Re: [sqlalchemy] How to define relationship in inherited declarative class?

2016-08-21 Thread Tom Kedem
I see. I think I can do okay without UserKeyword.user, as you suggested. Seems to work. Though is it really necessary to define user_keywords relationship both on user and super_user? It seems to be working with only defining it in user. On Sunday, August 21, 2016 at 9:33:01 PM UTC+3, Mike

Re: [sqlalchemy] How to define relationship in inherited declarative class?

2016-08-21 Thread Mike Bayer
On 08/21/2016 10:22 AM, Tom Kedem wrote: It seems I confused "concrete" with "joined" inheritance. What I want to achieve is /joined/ inheritance. I've modified the code to reflect that (just removed all concrete references). According to the documentation relationships on joined inheritance

Re: [sqlalchemy] How to define relationship in inherited declarative class?

2016-08-21 Thread Tom Kedem
It seems I confused "concrete" with "joined" inheritance. What I want to achieve is *joined* inheritance. I've modified the code to reflect that (just removed all concrete references). According to the documentation relationships on joined inheritance are inherited, but I still get an error