2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-15 19:45:46 +00:00

remove helper

This commit is contained in:
Matthias
2021-11-13 01:36:31 +01:00
parent 9d3aab58d7
commit 860c56e4ca

View File

@ -712,12 +712,3 @@ def inheritors(cls):
subcls.add(child)
work.append(child)
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()