From 17d0ee64c2d3bbe71787cab8365bbcd44778306e Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Sun, 29 Oct 2017 22:48:49 -0700 Subject: [PATCH] Fix join bug for Upgrades table when sorting by executor --- tailbone/views/upgrades.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tailbone/views/upgrades.py b/tailbone/views/upgrades.py index f2751701..6005c14f 100644 --- a/tailbone/views/upgrades.py +++ b/tailbone/views/upgrades.py @@ -114,7 +114,7 @@ class UpgradeView(MasterView): def configure_grid(self, 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_enum('status_code', self.enum.UPGRADE_STATUS) g.set_type('created', 'datetime')