Merge pull request #1880 from SchrodingersGat/settings-fix

Bug fix
This commit is contained in:
Oliver 2021-07-29 17:56:45 +10:00 committed by GitHub
commit 3806e3ebeb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -85,7 +85,7 @@ class BaseInvenTreeSetting(models.Model):
# Convert to javascript compatible booleans # Convert to javascript compatible booleans
if cls.validator_is_bool(validator): if cls.validator_is_bool(validator):
value = value.lower() value = str(value).lower()
# Numerical values remain the same # Numerical values remain the same
elif cls.validator_is_int(validator): elif cls.validator_is_int(validator):