mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-10 10:57:52 +00:00
Prevent recursion
This commit is contained in:
1 parent
e3c3ed28da
commit
526571c062
1 file changed
+5
-1
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user