From 3b12b0231e77f4a366032abe0e382415e01c2af1 Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 22 Jul 2021 23:50:51 +0200 Subject: [PATCH] fixing wired unique behaviour --- InvenTree/common/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/InvenTree/common/models.py b/InvenTree/common/models.py index 2e8678b600..a07bb1c43f 100644 --- a/InvenTree/common/models.py +++ b/InvenTree/common/models.py @@ -259,7 +259,7 @@ class BaseInvenTreeSetting(models.Model): 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')) + key = models.CharField(max_length=50, blank=False, unique=False, help_text=_('Settings key (must be unique - case insensitive')) value = models.CharField(max_length=200, blank=True, unique=False, help_text=_('Settings value'))