Skip to content

Commit 054be33

Browse files
committed
fix: 누락된 로직 추가
1 parent 1271549 commit 054be33

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/core/util/django_orm.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,8 @@ def json_to_simplenamespace(model_data: dict[str, dict[str, typing.Any]], key: s
245245
resolved_many_rel_models.append(resolved_instance)
246246

247247
setattr(resolved_model, attr_name, resolved_many_rel_models)
248+
elif isinstance(attr_value, dict):
249+
setattr(resolved_model, attr_name, types.SimpleNamespace(**attr_value))
248250

249251
return resolved_models[key]
250252

0 commit comments

Comments
 (0)