Ejemplo n.º 1
0
 def ordered_questions(self):
     return SessionBase.object_session(self).query(Question).with_parent(self).order_by(Question.order).all()
Ejemplo n.º 2
0
 def ordered_answers(self):
     return SessionBase.object_session(self).query(Answer).with_parent(self).order_by(Answer.order).all()
Ejemplo n.º 3
0
 def active_questions(self):
     return SessionBase.object_session(self).query(Question).with_parent(self).filter(Question.active==True).order_by(Question.order).all()