Upon adding a second foreign key to the same table I get the following error:
Please specify the 'onclause' of this join explicitly.
How can I specify this relationship?
class Parent(Base):
First = Column(Integer, ForeignKey('Child.Ex1'))
Second = Column(Integer, ForeignKey('Child.Ex2'))
class Child(Base):
Ex1 = Column(Integer)
Ex2 = Column(Integer)
(ed. note: pep8 recommends naming class attributes starting with lowercase…just a convention)