Example #1
0
 def index(self, order_by="Lesson.q.name"):
     lessons = list(Lesson.select())
     return dict(lessons=lessons)
Example #2
0
 def list(self, **kw):
     # return self.search(**kw)
     lessons = list(Lesson.select())
     return dict(lessons=lessons)