feat(itam): Add table_fields and page_layout to Device Model

ref:  #345 #346
This commit is contained in:
2024-10-12 22:15:17 +09:30
parent a776fcc760
commit f8a1087af3

View File

@ -31,6 +31,37 @@ class DeviceModel(DeviceCommonFieldsName, SaveHistory):
blank= True
)
table_fields: list = [
'manufacturer',
'name',
'organization',
'created',
'modified'
]
page_layout: dict = [
{
"name": "Details",
"slug": "details",
"sections": [
{
"layout": "double",
"left": [
'organization',
'manufacturer',
'name',
'created',
'modified',
],
"right": [
'model_notes',
'is_global',
]
}
]
}
]
def clean(self):