[sqlalchemy] BaseClass.query.filter only base class

2014-01-21 Thread Enrico Bottani
Hello everybody, I have a question about a query I'm trying to obtain. I have three classes: Unit -- QuestionUnit -- VideoQuestionUnit This is working fine with SQLAlchemy, what I'm struggling now is trying to get only the QuestionUnits, but not the VideoQuestionUnit. I would like to

Re: [sqlalchemy] BaseClass.query.filter only base class

2014-01-21 Thread Michael Bayer
On Jan 21, 2014, at 9:07 AM, Enrico Bottani bei...@mac.com wrote: Hello everybody, I have a question about a query I'm trying to obtain. I have three classes: Unit -- QuestionUnit -- VideoQuestionUnit This is working fine with SQLAlchemy, what I'm struggling now is trying to