Skip to content

Commit 32a1926

Browse files
[FIX] spec_driven_model: define default value if rec_name not found
1 parent 5d2acac commit 32a1926

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spec_driven_model/models/spec_mixin.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,8 @@ def _register_hook(self):
124124
filter(
125125
lambda x: (x.startswith(field_prefix) and "_choice" not in x),
126126
fields,
127-
)
127+
),
128+
None,
128129
)
129130
model_type = type(
130131
name,

0 commit comments

Comments
 (0)