remove helper

This commit is contained in:
Matthias 2021-11-13 01:36:31 +01:00
parent 9d3aab58d7
commit 860c56e4ca
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -712,12 +712,3 @@ def inheritors(cls):
subcls.add(child) subcls.add(child)
work.append(child) work.append(child)
return subcls return subcls
def setup_plugin(plg_key, plg_name):
"""
Enables plugins by reference
"""
plg_setting, _ = PluginConfig.objects.get_or_create(key=plg_key, name=plg_name)
plg_setting.active = True
plg_setting.save()