From 08a75f6e9f38d3103d9e1ffbf01989953f93bab0 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Tue, 27 Jun 2023 12:37:00 -0500 Subject: [PATCH] Avoid deprecated product key field getter --- tailbone/views/products.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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',