Open felixjichao opened 11 months ago
Thats strange. Look at this if statement in line 109 https://github.com/tiangolo/sqlmodel/blob/main/sqlmodel/main.py#L109
Here you can see where sqlmodel throws the Passing ... is not supported when also passing a sa_column
error. But there you can see the fields you're not allowed to pass in case you are already passing sa_Column
as one of Field
's parameters.
Maybe fastapi-amis-admin is doing something under the hood and passing an sa_Column
to your id
Field definition. Just a guess, but don't know actually
Run code from fastapi-amis-admin-demo
throw
RuntimeError: Passing primary_key is not supported when also passing a sa_column