2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-01 11:10:54 +00:00

Enable 'units' field for plugin settings (#9856)

* Enable 'units' field for plugin settings

* Bump API version
This commit is contained in:
Oliver
2025-06-25 20:30:39 +10:00
committed by GitHub
parent 73d463d84e
commit 6915ed52c9
3 changed files with 7 additions and 1 deletions

View File

@ -1,11 +1,15 @@
"""InvenTree API version information."""
# InvenTree API version
INVENTREE_API_VERSION = 356
INVENTREE_API_VERSION = 357
"""Increment this API version number whenever there is a significant change to the API that any clients need to know about."""
INVENTREE_API_TEXT = """
v357 -> 2025-06-25 : https://github.com/inventree/InvenTree/pull/9856
- Adds "units" field to PluginSetting API endpoints
v356 -> 2025-06-20 : https://github.com/inventree/InvenTree/pull/9817
- Enable generation of reports against the Company model type

View File

@ -213,6 +213,7 @@ class GenericReferencedSettingSerializer(SettingsSerializer):
'model_filters',
'api_url',
'typ',
'units',
'required',
]

View File

@ -64,6 +64,7 @@ class SampleIntegrationPlugin(
'description': _('A numerical setting'),
'validator': int,
'default': 123,
'units': 'metres',
},
'CHOICE_SETTING': {
'name': _('Choice Setting'),