2
0
mirror of https://github.com/inventree/InvenTree.git synced 2026-03-16 00:50:56 +00:00

Add explicit choice options

This commit is contained in:
Oliver Walters
2025-12-02 04:21:47 +00:00
parent 1e2fdd71c7
commit 06bc811c16

View File

@@ -726,6 +726,7 @@ class ParameterTemplateSerializer(
# Note: The choices are overridden at run-time on class initialization
model_type = ContentTypeField(
mixin_class=InvenTreeParameterMixin,
choices=common.validators.parameter_template_model_options,
label=_('Model Type'),
default='',
required=False,
@@ -796,6 +797,7 @@ class ParameterSerializer(
# Note: The choices are overridden at run-time on class initialization
model_type = ContentTypeField(
mixin_class=InvenTreeParameterMixin,
choices=common.validators.parameter_model_options,
label=_('Model Type'),
default='',
allow_null=False,