def _get_entries(self, *args, **kwargs): from demo.model import DBSession, HelloWorldModel return DBSession.query(HelloWorldModel).limit(10).all()
def _get_entries(self, *args, **kwargs): from demo.model import DBSession, HelloWorldModel return DBSession.query(HelloWorldModel).limit(10).all()
def model(self, *args, **kwargs): from demo.model import DBSession, HelloWorldModel entries = DBSession.query(HelloWorldModel).limit(10).all() return dict(entries=entries)
def model(self, *args, **kwargs): from demo.model import DBSession, HelloWorldModel entries = DBSession.query(HelloWorldModel).limit(10).all() return dict(entries=entries)