feat(setting): Enable super admin to set ALL device types as global

sets is_global=true and creates device types in global organization

!12 closes #31
This commit is contained in:
2024-05-27 14:29:43 +09:30
parent abbda7b400
commit ece6b9e354
5 changed files with 104 additions and 4 deletions

View File

@ -54,6 +54,12 @@ class AppSettings(AppSettingsCommonFields, SaveHistory):
default = False,
)
device_type_is_global = models.BooleanField (
verbose_name = 'All Device Types is global',
blank= False,
default = False,
)
software_is_global = models.BooleanField (
verbose_name = 'All Software is global',
blank= False,
@ -85,6 +91,7 @@ class AppSettings(AppSettingsCommonFields, SaveHistory):
__all__ = [
'device_model_is_global',
'device_type_is_global',
'software_is_global',
'software_categories_is_global',
'global_organization',