Commit df3435ae authored by Serge S. Koval's avatar Serge S. Koval

Fixed #209. Automatic join for m2m relations

parent b6c8c836
......@@ -557,7 +557,7 @@ class ModelView(BaseModelView):
if p.mapper.class_ == self.model:
continue
if p.direction.name == 'MANYTOONE':
if p.direction.name in ['MANYTOONE', 'MANYTOMANY']:
relations.add(p.key)
joined = []
......
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