Skip to content

Commit 091ce36

Browse files
committed
perf: Update automatically generated field names for associated model fields, compatible with pydantic v2 serialization.
1 parent 54a8710 commit 091ce36

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fastapi_amis_admin/crud/parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def cloned_field(self):
7777

7878

7979
class TableModelParser:
80-
_name_format = "{model_name}_{field_name}"
80+
_name_format = "{model_name}__{field_name}"
8181
_alias_format = "{table_name}__{field_key}"
8282

8383
def __init__(self, table_model: Type[TableModelT]):

0 commit comments

Comments
 (0)