feat(setting): Enable super admin to set ALL device models as global
sets is_global=true and creates device models in global organization !12 closes #29
This commit is contained in:
@ -48,6 +48,12 @@ class AppSettings(AppSettingsCommonFields, SaveHistory):
|
||||
related_name = 'owner_organization'
|
||||
)
|
||||
|
||||
device_model_is_global = models.BooleanField (
|
||||
verbose_name = 'All Device Models are global',
|
||||
blank= False,
|
||||
default = False,
|
||||
)
|
||||
|
||||
software_is_global = models.BooleanField (
|
||||
verbose_name = 'All Software is global',
|
||||
blank= False,
|
||||
@ -78,6 +84,7 @@ class AppSettings(AppSettingsCommonFields, SaveHistory):
|
||||
raise ValidationError("Global Software must have a global organization")
|
||||
|
||||
__all__ = [
|
||||
'device_model_is_global',
|
||||
'software_is_global',
|
||||
'software_categories_is_global',
|
||||
'global_organization',
|
||||
|
Reference in New Issue
Block a user