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:
@ -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',
|
||||
|
Reference in New Issue
Block a user