mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-14 02:55:41 +00:00
Prevent recursion
This commit is contained in:
@ -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