Skip to content

Commit

Permalink
feat(itam): Add page_layout to OperatingSystemVersion model
Browse files Browse the repository at this point in the history
  • Loading branch information
jon-nfc committed Nov 27, 2024
1 parent 20c09ec commit 1e556f1
Showing 1 changed file with 35 additions and 4 deletions.
39 changes: 35 additions & 4 deletions app/itam/models/operating_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ class Meta:
OperatingSystem,
help_text = 'Operating system this version applies to',
on_delete = models.CASCADE,
verbose_name = 'Operaating System'
verbose_name = 'Operating System'
)

name = models.CharField(
Expand All @@ -203,9 +203,40 @@ class Meta:
verbose_name = 'Major Version',
)

# model not intended to be viewable on its own
# as it's a sub model
page_layout: list = []
page_layout: list = [
{
"name": "Details",
"slug": "details",
"sections": [
{
"layout": "double",
"left": [
'organization',
'operating_system',
'name',
'created',
'modified',
],
"right": [
'model_notes',
'is_global',
]
},
]
},
{
"name": "Tickets",
"slug": "tickets",
"sections": [
# {
# "layout": "table",
# "field": "tickets",
# }
],
},


]

table_fields: list = [
'name',
Expand Down

0 comments on commit 1e556f1

Please sign in to comment.