# 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'),
        ),
    ]
