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

Fixed #172

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