chore: Remove all references to field is_global

field no longer used

ref: #789 #767
This commit is contained in:
2025-06-06 13:38:59 +09:30
parent 8c406e1d59
commit 8f0d0fbe16
61 changed files with 6 additions and 176 deletions

View File

@ -20,7 +20,7 @@ class Command(BaseCommand):
if kwargs['global']:
softwares = Manufacturer.objects.filter(is_global = False)
softwares = Manufacturer.objects.filter()
self.stdout.write('Running global')
@ -45,8 +45,6 @@ class Command(BaseCommand):
softwares = Manufacturer.objects.filter(
~Q(organization = app_settings.global_organization)
|
Q(is_global = False)
&
Q(organization=app_settings.global_organization),
)

View File

@ -45,7 +45,6 @@ class Manufacturer(
"left": [
'organization',
'name',
'is_global',
],
"right": [
'model_notes',

View File

@ -59,7 +59,6 @@ class ManufacturerModelSerializer(
'display_name',
'name',
'model_notes',
'is_global',
'created',
'modified',
'_urls',

View File

@ -60,7 +60,6 @@ class TicketCommentCategoryModelSerializer(
'parent',
'name',
'model_notes',
'is_global',
'created',
'modified',
'_urls',

View File

@ -49,12 +49,6 @@ class TicketBaseModelTestCases(
'field_type': None,
'field_parameter_verbose_name_type': None
},
"is_global": {
'field_type': None,
'field_parameter_default_exists': None,
'field_parameter_default_value': None,
'field_parameter_verbose_name_type': None
},
"external_system": {
'field_type': models.fields.IntegerField,
'field_parameter_default_exists': True,

View File

@ -48,12 +48,6 @@ class TicketCommentBaseModelTestCases(
parameterized_fields: dict = {
"is_global": {
'field_type': None,
'field_parameter_default_exists': None,
'field_parameter_default_value': None,
'field_parameter_verbose_name_type': None
},
"model_notes": {
'field_type': None,
'field_parameter_default_exists': None,