amisadmin / fastapi-amis-admin

FastAPI-Amis-Admin is a high-performance, efficient and easily extensible FastAPI admin framework. Inspired by django-admin, and has as many powerful functions as django-admin.
http://docs.amis.work
Apache License 2.0
1.1k stars 161 forks source link

怎么定义外键关联的字段不默认显示id? #142

Open Leewinner1 opened 1 year ago

Leewinner1 commented 1 year ago

解决了通过重写get_select方法,调用父类的get_select方法能得到 当前模型类的sql语句,在通过返回外连接到需要关联的表即可,但是自关联关系的模型类,我目前还没有办法解决如何定义?如何查询? image