mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-30 04:26:44 +00:00
Display "boolean" plugin setting values as checkboxes
This commit is contained in:
parent
8afce7b61a
commit
eb21e1f844
@ -124,6 +124,12 @@ class PluginSetting(common.models.BaseInvenTreeSetting):
|
|||||||
so that we can pass the plugin instance
|
so that we can pass the plugin instance
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
def is_bool(self, **kwargs):
|
||||||
|
|
||||||
|
kwargs['plugin'] = self.plugin
|
||||||
|
|
||||||
|
return super().is_bool(**kwargs)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def name(self):
|
def name(self):
|
||||||
return self.__class__.get_setting_name(self.key, plugin=self.plugin)
|
return self.__class__.get_setting_name(self.key, plugin=self.plugin)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user