Skip to content

Commit 05a8341

Browse files
authored
Update djangocms_frontend/plugin_tag.py
1 parent d1bf9ad commit 05a8341

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

djangocms_frontend/plugin_tag.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@ def get_plugin_class(settings_string: str | type) -> type:
7474

7575
def setup():
7676
allowed_plugin_types = tuple(get_plugin_class(cls) for cls in getattr(settings, "CMS_COMPONENT_PLUGINS", []))
77-
77+
if not allowed_plugin_types:
78+
return
79+
7880
for plugin in plugin_pool.get_all_plugins():
7981
if not issubclass(plugin, allowed_plugin_types):
8082
continue

0 commit comments

Comments
 (0)