From 855153f12181304feff2d65e1511faa1c83e6efe Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Fri, 20 Oct 2017 11:51:07 -0700 Subject: [PATCH] Fix bug with products view config --- tailbone/views/products.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tailbone/views/products.py b/tailbone/views/products.py index a7bc02ae..54024938 100644 --- a/tailbone/views/products.py +++ b/tailbone/views/products.py @@ -542,6 +542,11 @@ class ProductsView(MasterView): @classmethod def defaults(cls, config): + cls._product_defaults(config) + cls._defaults(config) + + @classmethod + def _product_defaults(cls, config): route_prefix = cls.get_route_prefix() url_prefix = cls.get_url_prefix() template_prefix = cls.get_template_prefix() @@ -569,8 +574,6 @@ class ProductsView(MasterView): config.add_view(cls, attr='search', route_name='products.search', renderer='json', permission='products.view') - cls._defaults(config) - # product image config.add_route('products.image', '/products/{uuid}/image') config.add_view(cls, attr='image', route_name='products.image')