Commit 4998ad8a authored by Jacopo Notarstefano's avatar Jacopo Notarstefano

Fix DeprecationWarning raised by SQLAlchemy

parent 1fa4ba80
......@@ -594,7 +594,7 @@ class ModelView(BaseModelView):
if column.foreign_keys or column.primary_key:
continue
visible_name = '%s / %s' % (self.get_column_name(attr.prop.table.name),
visible_name = '%s / %s' % (self.get_column_name(attr.prop.target.name),
self.get_column_name(p.key))
type_name = type(column.type).__name__
......
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