2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-03 20:20:58 +00:00

Add a simple unit test for the settings model

This commit is contained in:
Oliver Walters
2020-10-20 08:29:06 +11:00
parent c6e61c20fe
commit 226a91718b
2 changed files with 32 additions and 2 deletions

View File

@ -97,7 +97,7 @@ class InvenTreeSetting(models.Model):
else:
return
setting.value = value
setting.value = str(value)
setting.save()
key = models.CharField(max_length=50, blank=False, unique=True, help_text=_('Settings key (must be unique - case insensitive'))