2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-03 20:20:58 +00:00

Add unit tests for boolean user settings (via the API)

This commit is contained in:
Oliver Walters
2022-05-01 20:20:32 +10:00
parent 75fa0bed26
commit eabe082f0a
3 changed files with 100 additions and 6 deletions

View File

@ -417,6 +417,9 @@ class BaseInvenTreeSetting(models.Model):
super().clean()
# Encode as native values
self.value = self.native_value
validator = self.__class__.get_setting_validator(self.key, **kwargs)
if validator is not None: