2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-12-16 17:28:11 +00:00

Add new field to serializer

This commit is contained in:
Oliver Walters
2025-11-23 12:02:01 +00:00
parent 3c03727500
commit 8c120b03ec
2 changed files with 5 additions and 2 deletions

View File

@@ -717,6 +717,7 @@ class ParameterTemplateSerializer(
'checkbox', 'checkbox',
'choices', 'choices',
'selectionlist', 'selectionlist',
'enabled',
] ]
def __init__(self, *args, **kwargs): def __init__(self, *args, **kwargs):

View File

@@ -38,7 +38,8 @@ export default function ParameterTemplateTable() {
model_type: {}, model_type: {},
choices: {}, choices: {},
checkbox: {}, checkbox: {},
selectionlist: {} selectionlist: {},
enabled: {}
}; };
}, []); }, []);
@@ -183,7 +184,8 @@ export default function ParameterTemplateTable() {
accessor: 'choices' accessor: 'choices'
}, },
BooleanColumn({ BooleanColumn({
accessor: 'enabled' accessor: 'enabled',
title: t`Enabled`
}) })
]; ];
}, []); }, []);