Skip to content

Commit f9c7f70

Browse files
committed
🐛 Fix OrmConfig
1 parent 7aaf360 commit f9c7f70

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pydantic_sqlalchemy/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from importlib_metadata import version
22

3-
__version__ = version(__package__)
4-
53
from .main import sqlalchemy_to_pydantic
4+
5+
__version__ = version(__package__)

pydantic_sqlalchemy/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77

88
class OrmConfig(BaseConfig):
9-
orm_config = True
9+
orm_mode = True
1010

1111

1212
def sqlalchemy_to_pydantic(db_model: Type) -> Type[BaseModel]:

0 commit comments

Comments
 (0)