As I already mentioned, I tried your suggestion but with no success. The names are unique anyway, and I don't understand the how it's related to my question..
Could you please provide a working example that will demonstrate how 2 objects inherit from the same class, and hold the same primary key that is a primary foreign key of the derived class? On Monday, November 30, 2015 at 5:59:38 PM UTC+2, Jonathan Vanasco wrote: > > It should still work as a reference because the pacakge you use doesn't > override this. > > The extension's API makes this clear: > http://flask-sqlalchemy.pocoo.org/2.1/api/#models > > > _tablename__ > <http://flask-sqlalchemy.pocoo.org/2.1/api/#flask.ext.sqlalchemy.Model.__tablename__> > > The name of the table in the database. This is required by SQLAlchemy; > however, Flask-SQLAlchemy will set it automatically if a model has a > primary key defined. If the __table__ or __tablename__ is set explicitly, > that will be used instead. > -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sqlalchemy+unsubscr...@googlegroups.com. To post to this group, send email to sqlalchemy@googlegroups.com. Visit this group at http://groups.google.com/group/sqlalchemy. For more options, visit https://groups.google.com/d/optout.