0042_auto_20220317_0753.py 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. # Generated by Django 3.2.7 on 2022-03-17 07:53
  2. from django.db import migrations, models
  3. import django.db.models.deletion
  4. class Migration(migrations.Migration):
  5. dependencies = [
  6. ('parc_info', '0041_auto_20220316_1435'),
  7. ]
  8. operations = [
  9. migrations.AlterModelOptions(
  10. name='swich',
  11. options={'verbose_name': 'Switch', 'verbose_name_plural': 'Switchs'},
  12. ),
  13. migrations.CreateModel(
  14. name='Port_Link',
  15. fields=[
  16. ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  17. ('PL_Port', models.PositiveSmallIntegerField(verbose_name='Port sur le Switch')),
  18. ('PL_Headbang_plug', models.CharField(blank=True, max_length=4, verbose_name='Prise sur le bandeau')),
  19. ('PL_Swich', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='parc_info.swich')),
  20. ],
  21. options={
  22. 'verbose_name': 'Lien des prises vers les Switchs',
  23. 'verbose_name_plural': 'Lien des prises vers les Switchs',
  24. },
  25. ),
  26. ]