Skip to content

Commit 4998ad8

Browse files
committed
Fix DeprecationWarning raised by SQLAlchemy
1 parent 1fa4ba8 commit 4998ad8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flask_admin/contrib/sqla/view.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,7 +594,7 @@ def scaffold_filters(self, name):
594594
if column.foreign_keys or column.primary_key:
595595
continue
596596

597-
visible_name = '%s / %s' % (self.get_column_name(attr.prop.table.name),
597+
visible_name = '%s / %s' % (self.get_column_name(attr.prop.target.name),
598598
self.get_column_name(p.key))
599599

600600
type_name = type(column.type).__name__

0 commit comments

Comments
 (0)