From 279967d26c61433e7cdff4de440eadc6f2e20ebc Mon Sep 17 00:00:00 2001 From: Jon Date: Wed, 13 Nov 2024 23:40:08 +0930 Subject: [PATCH] feat(settings): Add `page_layout` to AppSettings model ref: #248 #385 #388 nofusscomputing/centurion_erp_ui#23 --- app/settings/models/app_settings.py | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/app/settings/models/app_settings.py b/app/settings/models/app_settings.py index ac0cc3db5..69e64882a 100644 --- a/app/settings/models/app_settings.py +++ b/app/settings/models/app_settings.py @@ -109,7 +109,28 @@ class Meta: table_fields: list = [] - page_layout: list = [] + page_layout: list = [ + { + "name": "Details", + "slug": "details", + "sections": [ + { + "layout": "double", + "left": [ + 'global_organization', + ], + "right": [ + 'device_model_is_global', + 'device_type_is_global', + 'manufacturer_is_global', + 'software_is_global', + 'software_categories_is_global', + + ] + } + ] + } + ] def get_organization(self):