Commit eb735767 authored by Serge S. Koval's avatar Serge S. Koval

Merge pull request #325 from nikola-kocic/master

fix sorting with null optional value
parents 586d057d f8b0fe49
...@@ -636,7 +636,7 @@ class ModelView(BaseModelView): ...@@ -636,7 +636,7 @@ class ModelView(BaseModelView):
table = mapper.tables[0] table = mapper.tables[0]
if self._need_join(table) and table.name not in joins: if self._need_join(table) and table.name not in joins:
query = query.join(table) query = query.outerjoin(table)
joins.add(table.name) joins.add(table.name)
elif isinstance(sort_field, Column): elif isinstance(sort_field, Column):
pass pass
......
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