Commit f8b0fe49 authored by Nikola Kocić's avatar Nikola Kocić

fix sorting with null optional value

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