在controllers / default.py中def test(): return dict(test=db().select(db.tbl_profile.name))我在test.html中有{{= test}},但它返回给我: tbl_card.name Johnny Apples... 我只希望完整的完整名称显示在html中,而不是table.field的名称或不完整的名称(由...切断)。
2 回答

蝴蝶不菲
TA贡献1810条经验 获得超4个赞
您可以仅通过db()。select(db.tablename.fieldname)显示所有行。要处理截断问题,可以使用SQLTABLE()并将truncate设置为None。
添加回答
举报
0/150
提交
取消