Skip to content

Commit

Permalink
fix: if no period in target, continue working
Browse files Browse the repository at this point in the history
  • Loading branch information
philtweir committed May 27, 2024
1 parent 651020c commit 9c220a2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion arches_orm/arches_django/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,9 @@ def _fill_fields(pseudo_node):

if cls._remap and cls._model_remapping:
for field, target in cls._model_remapping.items():
_, target = target.split(".", -1)
if "." in target:
_, target = target.split(".", -1)
logger.info("remapping: %s to %s", field, target)
pseudo_node = cls._make_pseudo_node_cls(target, wkri=None)
fields[snake(field)] = _fill_fields(pseudo_node)

Expand Down

0 comments on commit 9c220a2

Please sign in to comment.