-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(itam): Track if device is virtual
- Loading branch information
Showing
3 changed files
with
80 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
69 changes: 69 additions & 0 deletions
69
app/itam/migrations/0003_alter_device_options_alter_devicemodel_options_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
# Generated by Django 5.0.7 on 2024-08-17 08:05 | ||
|
||
import itam.models.device | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('itam', '0002_device_config'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterModelOptions( | ||
name='device', | ||
options={'verbose_name_plural': 'Devices'}, | ||
), | ||
migrations.AlterModelOptions( | ||
name='devicemodel', | ||
options={'ordering': ['manufacturer', 'name'], 'verbose_name_plural': 'Device Models'}, | ||
), | ||
migrations.AlterModelOptions( | ||
name='deviceoperatingsystem', | ||
options={'verbose_name_plural': 'Device Operating Systems'}, | ||
), | ||
migrations.AlterModelOptions( | ||
name='devicesoftware', | ||
options={'ordering': ['-action', 'software'], 'verbose_name_plural': 'Device Softwares'}, | ||
), | ||
migrations.AlterModelOptions( | ||
name='devicetype', | ||
options={'verbose_name_plural': 'Device Types'}, | ||
), | ||
migrations.AlterModelOptions( | ||
name='operatingsystem', | ||
options={'verbose_name_plural': 'Operating Systems'}, | ||
), | ||
migrations.AlterModelOptions( | ||
name='operatingsystemversion', | ||
options={'verbose_name_plural': 'Operating System Versions'}, | ||
), | ||
migrations.AlterModelOptions( | ||
name='software', | ||
options={'verbose_name_plural': 'Softwares'}, | ||
), | ||
migrations.AlterModelOptions( | ||
name='softwarecategory', | ||
options={'verbose_name_plural': 'Software Categories'}, | ||
), | ||
migrations.AlterModelOptions( | ||
name='softwareversion', | ||
options={'verbose_name_plural': 'Software Versions'}, | ||
), | ||
migrations.AddField( | ||
model_name='device', | ||
name='is_virtual', | ||
field=models.BooleanField(blank=True, default=False, help_text='Is this device a virtual machine', verbose_name='Is Virtual'), | ||
), | ||
migrations.AlterField( | ||
model_name='device', | ||
name='name', | ||
field=models.CharField(max_length=50, unique=True, validators=[itam.models.device.Device.validate_hostname_format]), | ||
), | ||
migrations.AlterField( | ||
model_name='device', | ||
name='uuid', | ||
field=models.CharField(blank=True, default=None, help_text='System GUID/UUID.', max_length=50, null=True, unique=True, validators=[itam.models.device.Device.validate_uuid_format], verbose_name='UUID'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters