Skip to content

Can you not use an inherited __table__ wrapped with declared_attr from a base class in 2.x? #11508

Discussion options

You must be logged in to vote

After upgrading to 2.0, an error is thrown saying the models don't have a tablename or table defined. Is this not supported anymore?

this is supported. The behavior is a bug #11509 which will be fixed by tonight. Place __table__ on a subclass of ViewBase declared with __abstract__ = True for now.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@zzzeek
Comment options

@trogers-medasync
Comment options

@zzzeek
Comment options

Answer selected by trogers-medasync
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants