From 16fdfd51bad7532bbaa17db18c08582eb171388a Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Mon, 21 Nov 2022 22:22:46 -0600 Subject: [PATCH] Fix view config inheritance --- rattail_demo/web/views/products.py | 3 +-- rattail_demo/web/views/upgrades.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) 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})