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,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
|
||||||
|
Loading…
Reference in New Issue
Block a user