From ccc13e1097e2b5cfd1a558445c9e07dac8f92ca6 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Mon, 29 Nov 2021 17:38:18 -0600 Subject: [PATCH] Tweak config for product views per upstream changes --- tailbone_woocommerce/views/products.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tailbone_woocommerce/views/products.py b/tailbone_woocommerce/views/products.py index d316df5..e774b7c 100644 --- a/tailbone_woocommerce/views/products.py +++ b/tailbone_woocommerce/views/products.py @@ -143,14 +143,10 @@ class ProductView(base.ProductView): def includeme(config): - # TODO: getting pretty tired of copy/pasting this extra config... - config.add_route('products.autocomplete', '/products/autocomplete') - config.add_view(base.ProductsAutocomplete, route_name='products.autocomplete', - renderer='json', permission='products.list') - # TODO: getting pretty tired of copy/pasting this extra config... config.add_route('products.print_labels', '/products/labels') config.add_view(base.print_labels, route_name='products.print_labels', renderer='json', permission='products.print_labels') ProductView.defaults(config) + PendingProductView.defaults(config)