|
|
@@ -73,7 +73,6 @@ class PlannedItem(Item):
|
|
|
|
|
|
__tablename__ = 'planned_items'
|
|
|
id = Column(Integer, ForeignKey('items.id'), primary_key=True)
|
|
|
- _type = Column(String)
|
|
|
|
|
|
collection_id = Column(Integer, ForeignKey('collections.id'))
|
|
|
collection = relationship('Collection', backref=backref('planned_items'))
|
|
|
@@ -82,9 +81,7 @@ class PlannedItem(Item):
|
|
|
_length = Column(String)
|
|
|
|
|
|
__mapper_args__ = {
|
|
|
- 'polymorphic_on': _type,
|
|
|
'polymorphic_identity': PlannedItemType.PLANNED.value,
|
|
|
- 'with_polymorphic': '*'
|
|
|
}
|
|
|
|
|
|
@hybrid_property
|