We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 244c947 + 6828d80 commit b3308d7Copy full SHA for b3308d7
sqlmodel/main.py
@@ -474,6 +474,7 @@ def get_sqlalchemy_type(field: FieldInfo) -> Any:
474
if type2 is pydantic.AnyUrl:
475
meta = get_args(type_)[1]
476
return AutoString(length=meta.max_length)
477
+ type_ = type2
478
elif org_type is pydantic.AnyUrl and type(type_) is _AnnotatedAlias:
479
return AutoString(type_.__metadata__[0].max_length)
480
0 commit comments