Unverified Commit 3672af35 authored by isra17's avatar isra17

Keep name from sorted column tuple in sqla

parent 94d41f7c
...@@ -499,8 +499,6 @@ class ModelView(BaseModelView): ...@@ -499,8 +499,6 @@ class ModelView(BaseModelView):
# column is in same table, use only model attribute name # column is in same table, use only model attribute name
if getattr(column, 'key', None) is not None: if getattr(column, 'key', None) is not None:
column_name = column.key column_name = column.key
else:
column_name = text_type(c)
# column_name must match column_name used in `get_list_columns` # column_name must match column_name used in `get_list_columns`
result[column_name] = column result[column_name] = column
......
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