Skip to content

Commit 84d739e

Browse files
PaleNeutronJohn-P
andauthoredDec 12, 2024
Update sqlmodel/_compat.py
Co-authored-by: John Pocock <John-P@users.noreply.github.com>
1 parent 7173b44 commit 84d739e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎sqlmodel/_compat.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def set_polymorphic_default_value(
7070
self_instance: _TSQLModel,
7171
values: Dict[str, Any],
7272
) -> bool:
73-
"""By defalut, when init a model, pydantic will set the polymorphic_on
73+
"""By default, when init a model, pydantic will set the polymorphic_on
7474
value to field default value. But when inherit a model, the polymorphic_on
7575
should be set to polymorphic_identity value by default."""
7676
cls = type(self_instance)

0 commit comments

Comments
 (0)