mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Prevent recursion
This commit is contained in:
parent
e3c3ed28da
commit
526571c062
@ -407,7 +407,11 @@ class BaseInvenTreeSetting(models.Model):
|
||||
super().clean()
|
||||
|
||||
# Encode as native values
|
||||
self.value = self.to_native_value()
|
||||
if self.is_int():
|
||||
self.value = self.as_int()
|
||||
|
||||
elif self.is_bool():
|
||||
self.value = self.as_bool()
|
||||
|
||||
validator = self.__class__.get_setting_validator(self.key, **kwargs)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user