Can I append twice the same object to an InstrumentedList in SQLAlchemy?
问题 I have a pretty simple N:M relationship in SqlAlchemy 0.6.6. I have a class "attractLoop" that can contain a bunch of Media (Images or Videos). I need to have a list in which the same Media (let's say image) can be appended twice. The relationship is as follows: The media is a base class with most of the attributes Images and Videos will share. class BaseMedia(BaseClass.BaseClass, declarativeBase): __tablename__ = "base_media" _polymorphicIdentity = Column("polymorphic_identity", String(20),