mixin_enabled check for templates

This commit is contained in:
Matthias committed 2021-09-18 04:46:50 +02:00
1 parent 1c781d9bf0
commit 3b2cb43ece
3 files changed
+19 -4

No files matched your search

@@ -19,3 +19,9 @@ def plugin_list(*args, **kwargs):
def plugin_settings(plugin, *args, **kwargs):
""" Return a list of all settings for a plugin """
return djangosettings.INTEGRATION_PLUGIN_SETTING.get(plugin)
@register.simple_tag()
def mixin_enabled(plugin, key, *args, **kwargs):
""" Return if the mixin is existant and configured in the plugin """
return plugin.mixin_enabled(key)