Skip to content

Commit

Permalink
merged maintrunk
Browse files Browse the repository at this point in the history
  • Loading branch information
mesemus committed Feb 29, 2024
2 parents 4f904bb + ccbaa59 commit 226339a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion oarepo_model_builder/loaders/extend.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ def extract_extended_record(included_data, *, context, **kwargs):
and keep those in "other_properties" inside the context so that other processors
can add some of those selectively.
"""
if "record" in included_data and "properties" in included_data["record"]:
if (
"record" in included_data
and "properties" in included_data["record"]
and "properties" not in included_data
):
extended_object = included_data["record"]
elif "properties" in included_data:
extended_object = included_data
Expand Down

0 comments on commit 226339a

Please sign in to comment.