2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 04:55:44 +00:00

Edit plugin settings via the "settings" display

This commit is contained in:
Oliver
2022-01-04 21:03:01 +11:00
parent dc9e25ebad
commit 928b90a833
4 changed files with 24 additions and 16 deletions

View File

@ -113,6 +113,12 @@ class PluginSetting(common.models.BaseInvenTreeSetting):
('plugin', 'key'),
]
def clean(self, **kwargs):
kwargs['plugin'] = self.plugin
super().clean(**kwargs)
"""
We override the following class methods,
so that we can pass the plugin instance