diff --git a/tailbone/views/vendors/samplefiles.py b/tailbone/views/vendors/samplefiles.py index 41982259..a75bc1fb 100644 --- a/tailbone/views/vendors/samplefiles.py +++ b/tailbone/views/vendors/samplefiles.py @@ -61,8 +61,13 @@ class VendorSampleFileView(MasterView): def configure_grid(self, g): super(VendorSampleFileView, self).configure_grid(g) + model = self.model # vendor + g.set_joiner('vendor', lambda q: q.join(model.Vendor)) + g.set_sorter('vendor', model.Vendor.name) + g.set_filter('vendor', model.Vendor.name, + default_active=True, default_verb='contains') g.set_link('vendor') # filename