We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d460c5d commit 3db51e0Copy full SHA for 3db51e0
sqlmodel/main.py
@@ -576,6 +576,12 @@ def get_config(name: str) -> Any:
576
# TODO: remove this in the future
577
set_config_value(model=new_cls, parameter="read_with_orm_mode", value=True)
578
579
+ # enables field-level docstrings on the pydanatic `description` field, which we then copy into
580
+ # sa_args, which is persisted to sql table comments
581
+ set_config_value(
582
+ model=new_cls, parameter="use_attribute_docstrings", value=True
583
+ )
584
+
585
config_registry = get_config("registry")
586
if config_registry is not Undefined:
587
config_registry = cast(registry, config_registry)
0 commit comments