- changed milestone to 0.8.xx
AbstractConcreteBase class provides incorrect example
Issue #2717
resolved
The docstring for AbstractConcreteBase shows the following example:
from sqlalchemy.ext.declarative import ConcreteBase
class Employee(AbstractConcreteBase, Base):
pass
class Manager(Employee):
__tablename__ = 'manager'
employee_id = Column(Integer, primary_key=True)
name = Column(String(50))
manager_data = Column(String(40))
__mapper_args__ = {
'polymorphic_identity':'manager',
'concrete':True}
This first line imports ConcreteBase, when really it should import AbstractConcreteBase
Comments (5)
-
repo owner -
Account Deleted (original author: diana) fixed in master, 0.8, and 0.9.
792facf539a5a79cff19f7475fb9b9feb0abb3d0, cee8418899259e141f0059c86a32844c49f37118, 07d200166aa44532e41ac82640eb372f92b00b9f
-
Account Deleted - assigned issue to
(original author: diana)
-
Account Deleted - changed status to resolved
(original author: diana)
-
repo owner - removed milestone
Removing milestone: 0.8.xx (automated comment)
- Log in to comment
in the actual docstring for ACB, not the declarative tutorial docs