Re: [sqlalchemy] Having trouble getting a subquery to return entities

2012-02-03 Thread Michael Bayer
On Feb 3, 2012, at 11:28 AM, cbc wrote: > Hi: > > I'm having trouble getting a subquery to return entities. > > class Question(Base): > __tablename__ = 'question' > question_id = Column(INTEGER(unsigned=True), primary_key=True) > ...etc > q_answers = relationship("Answer

[sqlalchemy] Having trouble getting a subquery to return entities

2012-02-03 Thread cbc
Hi: I'm having trouble getting a subquery to return entities. class Question(Base): __tablename__ = 'question' question_id = Column(INTEGER(unsigned=True), primary_key=True) ...etc q_answers = relationship("Answer", backref="question") class Answer(Base):