2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-04 04:30:56 +00:00

test default value with as_int and fix it

This commit is contained in:
Matthias
2022-03-12 03:35:20 +01:00
parent 76fd529374
commit b88a6ccdb5
2 changed files with 2 additions and 1 deletions

View File

@ -570,7 +570,7 @@ class BaseInvenTreeSetting(models.Model):
try:
value = int(self.value)
except (ValueError, TypeError):
value = self.default_value()
value = self.default_value
return value