Minor code error in docs for "Mixin and Custom Base Classes"

Issue #2294 resolved
Former user created an issue

The code example at this link has a mistake:

http://www.sqlalchemy.org/docs/orm/extensions/declarative.html#mixin-and-custom-base-classes

The MyModel class has a __tablename__ declaration in it, and it shouldn't. Subsequent text states that MyModel will have "a __tablename__ attribute that derives from the name of the class itself" and it obviously won't in the given code.

Comments (2)

  1. Log in to comment