Commit 6ce54ace authored by Serge S. Koval's avatar Serge S. Koval

Fixed #172

parent 22853154
......@@ -432,7 +432,7 @@ class InlineModelConverter(InlineModelConverterBase):
for prop in target_mapper.iterate_properties:
if hasattr(prop, 'direction') and prop.direction.name == 'MANYTOONE':
if prop.mapper.class_ == model:
if issubclass(model, prop.mapper.class_):
reverse_prop = prop
break
else:
......
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