mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
remove helper
This commit is contained in:
parent
9d3aab58d7
commit
860c56e4ca
@ -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()
|
|
||||||
|
Loading…
Reference in New Issue
Block a user