feat(itim): Add attribute page_layout to Service Port model

ref:  #248 #345 #346
This commit is contained in:
2024-10-13 18:11:54 +09:30
parent 8f410b370d
commit 3998325acd

View File

@ -76,6 +76,44 @@ class Port(TenancyObject):
modified = AutoLastModifiedField()
page_layout: dict = [
{
"name": "Details",
"slug": "details",
"sections": [
{
"layout": "double",
"left": [
'organization',
'display_name',
'description',
'is_global',
],
"right": [
'model_notes',
'created',
'modified',
]
},
]
},
{
"name": "Services",
"slug": "services",
"sections": [
{
"layout": "table",
"field": "services",
}
]
},
{
"name": "Notes",
"slug": "notes",
"sections": []
},
]
def __str__(self):
return str(self.protocol) + '/' + str(self.number)