2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-12-16 09:18:10 +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',
'choices',
'selectionlist',
'enabled',
]
def __init__(self, *args, **kwargs):

View File

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