Commit 623f573b authored by Greg Kempe's avatar Greg Kempe

Fix SQLAlchemy default sort order when column name is ambiguous.

Instead of sorting on the raw column name, sort on the attribute we found. This fixes sorting for column names that are ambiguous due to table joins.
parent c8131d72
...@@ -716,7 +716,7 @@ class ModelView(BaseModelView): ...@@ -716,7 +716,7 @@ class ModelView(BaseModelView):
join_tables, attr = self._get_field_with_path(field) join_tables, attr = self._get_field_with_path(field)
return join_tables, field, direction return join_tables, attr, direction
return None return None
......
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