Skip to content

Commit

Permalink
feat(access): Add table_fields and page_layout to Organization
Browse files Browse the repository at this point in the history
ref:  #345 #346
  • Loading branch information
jon-nfc committed Oct 12, 2024
1 parent b5e5519 commit 3472a25
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions app/access/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,44 @@ def get_organization(self):
def __str__(self):
return self.name

table_fields: list = [
'nbsp',
'name',
'created',
'modified',
'nbsp'
]

page_layout: list = [
{
"name": "Details",
"slug": "details",
"sections": [
{
"layout": "double",
"left": [
'name',
'manager',
'created',
'modified',
],
"right": [
'model_notes',
]
}
]
},
{
"name": "Teams",
"slug": "teams",
"sections": []
},
{
"name": "Notes",
"slug": "notes",
"sections": []
}
]


class TenancyManager(models.Manager):
Expand Down

0 comments on commit 3472a25

Please sign in to comment.