Commit b9e51a14 authored by Samuel Trégouët's avatar Samuel Trégouët
Browse files

fix schema for inline relation

--HG--
branch : 0.1
parent 11222ed97920
......@@ -819,7 +819,7 @@ class InlinedRelationMapper(_RelationMapper):
)
target_document = mapper.jsl_document(schema_role)
assert target_document.get_definition_id() == target_type
yield jsl.fields.DocumentField(target_type, as_ref=True)
yield jsl.fields.DocumentField(target_document, as_ref=True)
def values(self, entity, instance):
# Would require knownledge of the target type from "instance",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment