Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Leewinner1 opened this issue Nov 10, 2023 · 1 comment
Open

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

Leewinner1 opened this issue Nov 10, 2023 · 1 comment

Comments

@Leewinner1
Copy link

No description provided.

@Leewinner1
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant