[sqlalchemy] with_polymorphic() and more than one level of inheritance

2010-07-16 Thread Julien Cigar
Hello, I have the following mappers: orm.mapper(Content, table.content, polymorphic_on = table.content.c.content_type_id, ...) orm.mapper(News, table.news, inherits = Content, polymorphic_on = table.content.c.content_type_id) orm.mapper(PlatformNews, table.platform_news,

Re: [sqlalchemy] with_polymorphic() and more than one level of inheritance

2010-07-16 Thread Michael Bayer
On Jul 16, 2010, at 7:34 AM, Julien Cigar wrote: Hello, I have the following mappers: orm.mapper(Content, table.content, polymorphic_on = table.content.c.content_type_id, ...) orm.mapper(News, table.news, inherits = Content, polymorphic_on = table.content.c.content_type_id)