Re: [sqlalchemy] Leveled single table inheritance without declarative API [SOLVED]

2016-07-25 Thread Ameretat Reith
On Mon, 25 Jul 2016 01:37:10 -0400 Mike Bayer <mike...@zzzcomputing.com> wrote: > On 07/25/2016 12:23 AM, Ameretat Reith wrote: > > > >>> mapper(Father1980,fathers,inherits=fathersMapper, > >>>polymorphic_identity='young-father') > >&g

Re: [sqlalchemy] Leveled single table inheritance without declarative API

2016-07-24 Thread Ameretat Reith
> > mapper(Father1980,fathers,inherits=fathersMapper, > >polymorphic_identity='young-father') > > you have the wrong table above ("fathers" and not "fathers80s"). > There's a bug here in how the ORM is corrupting the table in response > to this which I'll fix separately. I'm actually

[sqlalchemy] Leveled single table inheritance without declarative API

2016-07-23 Thread Ameretat Reith
I'm trying to make three `Guy', `Father' and `Father1980' models mapped to two `guys' and `fathers' tables. Fathers will inherit Guys and Father1980 will inherit Fathers. So I coded it as: from sqlalchemy import (Table, Binary, Column as C, String, Integer, ForeignKey,