diff --git a/rattail_demo/web/views/products.py b/rattail_demo/web/views/products.py index 1ce0628..99ce60f 100644 --- a/rattail_demo/web/views/products.py +++ b/rattail_demo/web/views/products.py @@ -59,5 +59,4 @@ class ProductView(corepos_base.ProductView, woocommerce_base.ProductView): def includeme(config): - ProductView.defaults(config) - base.PendingProductView.defaults(config) + base.defaults(config, **{'ProductView': ProductView}) diff --git a/rattail_demo/web/views/upgrades.py b/rattail_demo/web/views/upgrades.py index 8338f8a..8035303 100644 --- a/rattail_demo/web/views/upgrades.py +++ b/rattail_demo/web/views/upgrades.py @@ -24,4 +24,4 @@ class UpgradeView(base.UpgradeView): def includeme(config): - UpgradeView.defaults(config) + base.defaults(config, **{'UpgradeView': UpgradeView})