[sqlalchemy] Re: Postgres INHERITS and concrete table inheritance

2009-12-15 Thread Martin Aspeli
Hi Michael, Thanks for the quick reply! Michael Bayer wrote: Martin Aspeli wrote: Hi, This kind of works, but there are a few problems: - The 'owners' variable on the Game type only contains Vehicle objects. I'd like it to contain the correct sub-class if possible. When a row is

Re: [sqlalchemy] Re: Postgres INHERITS and concrete table inheritance

2009-12-15 Thread Michael Bayer
Martin Aspeli wrote: How would the mapper configuration look if it were an expression? If it were a column? this is the `polymorphic_on` attribute. It generally expects to point to a column. Its not yet very flexible for expressions which is a TODO. an actual column in your base table