Commit 4605ef7b authored by Cosmia Fu's avatar Cosmia Fu

revert previous commit

parent 809169cd
......@@ -693,7 +693,6 @@ class ModelView(BaseModelView):
joins.add(table.name)
if sort_field is not None:
sort_field = getattr(self.model, sort_field, sort_field)
if sort_desc:
query = query.order_by(desc(sort_field))
else:
......
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