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')