From 3edee4f705b6568b0de5a98b342bb8b734bbdbbb Mon Sep 17 00:00:00 2001 From: Nicolas PASCAL Date: Tue, 14 Apr 2020 08:46:29 +0200 Subject: [PATCH] fix CatalogLinkPluginBase if used with stride typeError: super(type, obj): obj must be an instance or subtype of type --- shop/cascade/plugin_base.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/shop/cascade/plugin_base.py b/shop/cascade/plugin_base.py index 99393a664..e155ab594 100644 --- a/shop/cascade/plugin_base.py +++ b/shop/cascade/plugin_base.py @@ -93,7 +93,10 @@ def get_link(cls, obj): if relobj: return relobj.get_absolute_url() else: - return super().get_link(obj) or link_type + if not 'stride' in str(type(obj)) : + return super().get_link(obj) or link_type + else: + return cls.super(CatalogLinkPluginBase, cls).get_link(obj) or link_type class DialogPluginBaseForm(EntangledModelFormMixin):