mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
only include setting in the settings that have a key
This commit is contained in:
parent
7ed43f5a11
commit
369864574e
@ -58,12 +58,13 @@ class BaseInvenTreeSetting(models.Model):
|
||||
|
||||
# Query the database
|
||||
for setting in results:
|
||||
settings.append({
|
||||
"key": setting.key.upper(),
|
||||
"value": setting.value
|
||||
})
|
||||
if setting.key:
|
||||
settings.append({
|
||||
"key": setting.key.upper(),
|
||||
"value": setting.value
|
||||
})
|
||||
|
||||
keys.add(setting.key.upper())
|
||||
keys.add(setting.key.upper())
|
||||
|
||||
# Specify any "default" values which are not in the database
|
||||
for key in cls.GLOBAL_SETTINGS.keys():
|
||||
|
Loading…
Reference in New Issue
Block a user