Fix join bug for Upgrades table when sorting by executor
This commit is contained in:
parent
d89a21e2b0
commit
17d0ee64c2
|
@ -114,7 +114,7 @@ class UpgradeView(MasterView):
|
||||||
|
|
||||||
def configure_grid(self, g):
|
def configure_grid(self, g):
|
||||||
super(UpgradeView, self).configure_grid(g)
|
super(UpgradeView, self).configure_grid(g)
|
||||||
g.set_joiner('executed_by', lambda q: q.join(model.User).outerjoin(model.Person))
|
g.set_joiner('executed_by', lambda q: q.join(model.User, model.User.uuid == model.Upgrade.executed_by_uuid).outerjoin(model.Person))
|
||||||
g.set_sorter('executed_by', model.Person.display_name)
|
g.set_sorter('executed_by', model.Person.display_name)
|
||||||
g.set_enum('status_code', self.enum.UPGRADE_STATUS)
|
g.set_enum('status_code', self.enum.UPGRADE_STATUS)
|
||||||
g.set_type('created', 'datetime')
|
g.set_type('created', 'datetime')
|
||||||
|
|
Loading…
Reference in a new issue