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 put a condition in this method:
    questionUnits      = [i.serialize for i in 
QuestionUnit.query.filter(QuestionUnit.brand_id == brandID).all()]

I have tried a lot of different things but never succeed,can someone please 
point me in the right direction?

Best,

Enrico

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to