1
0

0037_auto_20211214_0749.py 1.7 KB

123456789101112131415161718192021222324252627282930313233343536
  1. # Generated by Django 3.2.7 on 2021-12-14 07:49
  2. from django.db import migrations, models
  3. import django.db.models.deletion
  4. class Migration(migrations.Migration):
  5. dependencies = [
  6. ('parc_info', '0036_auto_20211213_0951'),
  7. ]
  8. operations = [
  9. migrations.AlterField(
  10. model_name='taches',
  11. name='Taches_Tech',
  12. field=models.CharField(choices=[('-', '* A def *'), ('LH', 'Laurent'), ('CM', '* A def *'), ('PG', 'Philippe')], default='-', max_length=16, verbose_name='Technicien'),
  13. ),
  14. migrations.CreateModel(
  15. name='Swich',
  16. fields=[
  17. ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  18. ('SW_Site', models.CharField(choices=[('GENT', 'GENT'), ('CAP', 'CAP'), ('EXT', 'EXT')], default='EXT', max_length=4, verbose_name='Site')),
  19. ('SW_Nom', models.CharField(blank=True, max_length=64, null=True, verbose_name='Nom NETBIOS')),
  20. ('SW_IP', models.CharField(blank=True, max_length=64, null=True, verbose_name='Adresse IP')),
  21. ('SW_OS', models.CharField(choices=[('CISCO', 'Cisco'), ('ARUBA', 'Aruba')], default='CISCO', max_length=5, verbose_name='OS')),
  22. ('SW_TYPE', models.CharField(choices=[('F', 'Fast'), ('G', 'Giga')], default='F', max_length=1, verbose_name='Type')),
  23. ('SW_Commentaires', models.TextField(blank=True, null=True, verbose_name='Commentaires')),
  24. ('SW_Baie', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='parc_info.baie')),
  25. ],
  26. options={
  27. 'verbose_name': 'Swich',
  28. 'verbose_name_plural': 'Swichs',
  29. },
  30. ),
  31. ]