2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-02 19:50:59 +00:00

out-of-scope:update settings value lookup to include typ (#3636)

This commit is contained in:
Matthias Mair
2022-09-02 08:51:16 +02:00
committed by GitHub
parent 23edd79431
commit eaaf98f9d4
5 changed files with 17 additions and 5 deletions

View File

@ -1329,6 +1329,8 @@ class InvenTreeSetting(BaseInvenTreeSetting):
},
}
typ = 'inventree'
class Meta:
"""Meta options for InvenTreeSetting."""
@ -1642,6 +1644,8 @@ class InvenTreeUserSetting(BaseInvenTreeSetting):
},
}
typ = 'user'
class Meta:
"""Meta options for InvenTreeUserSetting."""

View File

@ -70,6 +70,7 @@ class GlobalSettingsSerializer(SettingsSerializer):
'choices',
'model_name',
'api_url',
'typ',
]
@ -93,6 +94,7 @@ class UserSettingsSerializer(SettingsSerializer):
'choices',
'model_name',
'api_url',
'typ',
]
@ -122,6 +124,7 @@ class GenericReferencedSettingSerializer(SettingsSerializer):
'choices',
'model_name',
'api_url',
'typ',
]
# set Meta class