Hi all, I have this table:
class Comparation(Base): """Represents comparation between two post""" __tablename__ = "comparations" _id = Column("id", Integer, primary_key=True) _number = Column("number", Integer) _total = Column("total", Integer) _average = Column("average", Float) _postAId = Column("postA_id", Integer, ForeignKey("posts.id")) _postBId = Column("postB_id", Integer, ForeignKey("posts.id")) _postA = relationship("Post", uselist=False) _postB = relationship("Post", uselist=False) It has two ForeignKeys pointing the same table, but it also has two relationships related to those ForeignKeys. How can I relate _postAId to _postA? Thanks in advance! -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalch...@googlegroups.com. To unsubscribe from this group, send email to sqlalchemy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en.