| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
I have also being working on solving this and will make a PR solving the issue with the associated tests. I will link it here when its done. |
Sorry, something went wrong.
|
Inspired by your test - added a fix here: https://github.com/fastapi/sqlmodel/pull/1607/files |
Sorry, something went wrong.
Sounds good - didn't realize he was on it! For what it's worth, I do think this is exactly what the Pydantic metadata field is for. |
Sorry, something went wrong.
|
@patrick91 @vimota |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
The title is currently a lie :D but there's a test for what's broken, and I think it's because the FieldInfo we get in get_column_from_field is the Pydantic one and not the SQLModel one
EDIT: I guess this is not just about primary keys, but it's about any custom attribute used in SQLModel's Field :)