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

SQLmodel如何实现新增数据可以使用下拉列表选择对应的值? #191

Open
charsxiong opened this issue Dec 9, 2024 · 0 comments

Comments

@charsxiong
Copy link

使用sqlmodel声明字段的时候,目前在field这里使用了default字段,将所有可选字段都写上后,页面可以将所有字段都显示,但是显示是列表式文本显示,需要二次手动编辑;
default=('待修复open', '修复完成closed', '驳回refused', '挂起pause')

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