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.09k stars 161 forks source link

[Bug] Fix: pydantic.errors.PydanticUserError: Field 'id' requires a type annotation #162

Closed munikes closed 7 months ago

munikes commented 9 months ago

I fix a problem when create from sqlalchemy 2.0 model, without pydantic model.

raise PydanticUserError(
pydantic.errors.PydanticUserError: Field 'id' requires a type annotation