only include setting in the settings that have a key

This commit is contained in:
Matthias 2021-07-30 23:25:45 +02:00
parent 7ed43f5a11
commit 369864574e

View File

@ -58,6 +58,7 @@ class BaseInvenTreeSetting(models.Model):
# Query the database # Query the database
for setting in results: for setting in results:
if setting.key:
settings.append({ settings.append({
"key": setting.key.upper(), "key": setting.key.upper(),
"value": setting.value "value": setting.value