From 8df1fc97f3bf3e6c7b18ca633a22d0473e1a5591 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Mon, 17 Jan 2022 19:01:02 -0600 Subject: [PATCH] Remove deprecated config --- tailbone_corepos/views/products.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/tailbone_corepos/views/products.py b/tailbone_corepos/views/products.py index e859c66..e33d4c5 100644 --- a/tailbone_corepos/views/products.py +++ b/tailbone_corepos/views/products.py @@ -120,12 +120,11 @@ class ProductView(base.ProductView): return kwargs +# TODO: this seems awkward here, but makes things less awkward to +# modules using this one as their base +PendingProductView = base.PendingProductView + + def includeme(config): - - # 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) - base.PendingProductView.defaults(config) + PendingProductView.defaults(config)