diff --git a/tailbone/views/products.py b/tailbone/views/products.py index 8988538b..1cfa528a 100644 --- a/tailbone/views/products.py +++ b/tailbone/views/products.py @@ -238,8 +238,7 @@ class ProductView(MasterView): ProductCostCodeAny.product_uuid == model.Product.uuid) # product key - key = self.rattail_config.product_key() - field = self.product_key_fields.get(key, key) + field = self.get_product_key_field() g.filters[field].default_active = True g.filters[field].default_verb = 'equal' g.set_sort_defaults(field) @@ -1253,8 +1252,7 @@ class ProductView(MasterView): } def get_panel_fields_main(self, product): - key = self.rattail_config.product_key() - product_key_field = self.product_key_fields.get(key, key) + product_key_field = self.get_product_key_field() fields = [ product_key_field, 'brand',