Add explicit choice options

This commit is contained in:
Oliver Walters 2025-12-02 04:21:47 +00:00
parent 1e2fdd71c7
commit 06bc811c16
1 changed files with 2 additions and 0 deletions

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,