Edit plugin settings via the "settings" display

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

No files matched your search

+6
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