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:
@@ -717,6 +717,7 @@ class ParameterTemplateSerializer(
|
||||
'checkbox',
|
||||
'choices',
|
||||
'selectionlist',
|
||||
'enabled',
|
||||
]
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
|
||||
@@ -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`
|
||||
})
|
||||
];
|
||||
}, []);
|
||||
|
||||
Reference in New Issue
Block a user