-
Notifications
You must be signed in to change notification settings - Fork 2
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
Use select(list_schema) when available #1
base: master
Are you sure you want to change the base?
Conversation
|
# Conflicts: # fastapi_sqlmodel_crud/_sqlmodel.py
Thank you for your quick response, I just merge your changes on my PR.
If I changing the pyproject.toml |
|
I found that the repo mixed a lot with |
from fastapi_amis_admin.models import Field | ||
from fastapi_sqlmodel_crud import SQLModelCrud | ||
from fastapi_sqlmodel_crud.parser import LabelField, PropertyField | ||
# from fastapi_amis_admin.models import Field # what should I do here? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what should I do here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what should I do here?
from sqlmodel import Field
Yes, you can clone the |
When there is schema_list that used another table e.g.
the data will not populate on the route_list, in case of
best_color
is not optional it will cause an error.with my PR it will actually fetch according to the schema_list.
Please ask me to implement it any other way, or if you prefer fix it yourself.
P.S. I've tried to run the test myself but I had a few problems.
[tool.poetry]
section on pyproject.tomlE ModuleNotFoundError: No module named 'sqlalchemy_database'
please let me know if I can help in any way or if I missing anything