diff --git a/tailbone/views/tempmon/readings.py b/tailbone/views/tempmon/readings.py index 7bf0e6ae..8d534ad2 100644 --- a/tailbone/views/tempmon/readings.py +++ b/tailbone/views/tempmon/readings.py @@ -62,7 +62,8 @@ class TempmonReadingView(MasterView): g.sorters['client_host'] = g.make_sorter(tempmon.Client.hostname) g.filters['client_host'] = g.make_filter('client_host', tempmon.Client.hostname) - g.joiners['probe'] = lambda q: q.join(tempmon.Probe) + g.joiners['probe'] = lambda q: q.join(tempmon.Probe, + tempmon.Probe.uuid == tempmon.Reading.probe_uuid) g.sorters['probe'] = g.make_sorter(tempmon.Probe.description) g.filters['probe'] = g.make_filter('probe', tempmon.Probe.description)