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

Remove "description" field from InvenTreeSettings key:value fields

This commit is contained in:
Oliver Walters
2020-10-20 00:02:54 +11:00
parent 92c1e3c1a5
commit 06040f94ee
5 changed files with 19 additions and 67 deletions

View File

@ -76,8 +76,6 @@ class InvenTreeSetting(models.Model):
value = models.CharField(max_length=200, blank=True, unique=False, help_text=_('Settings value'))
description = models.CharField(max_length=200, blank=True, unique=False, help_text=_('Settings description'))
def validate_unique(self, exclude=None):
""" Ensure that the key:value pair is unique.
In addition to the base validators, this ensures that the 'key'