feat(setting): Enable super admin to set ALL manufacturer/publishers as global

sets is_global=true and creates manufacturers/publishers in global organization

!12
This commit is contained in:
2024-05-27 15:06:58 +09:30
parent ece6b9e354
commit bf69a30163
4 changed files with 101 additions and 0 deletions

View File

@ -60,6 +60,12 @@ class AppSettings(AppSettingsCommonFields, SaveHistory):
default = False,
)
manufacturer_is_global = models.BooleanField (
verbose_name = 'All Manufacturer / Publishers are global',
blank= False,
default = False,
)
software_is_global = models.BooleanField (
verbose_name = 'All Software is global',
blank= False,
@ -92,6 +98,7 @@ class AppSettings(AppSettingsCommonFields, SaveHistory):
__all__ = [
'device_model_is_global',
'device_type_is_global',
'manufacturer_is_global',
'software_is_global',
'software_categories_is_global',
'global_organization',