Ce serveur Gitlab sera éteint le 30 juin 2020, pensez à migrer vos projets vers les serveurs gitlab-research.centralesupelec.fr et gitlab-student.centralesupelec.fr !

Commit e7b49bd5 authored by Gabriel Detraz's avatar Gabriel Detraz Committed by root

Pas de null sur manytomany

parent 983b5620
...@@ -31,7 +31,7 @@ class Migration(migrations.Migration): ...@@ -31,7 +31,7 @@ class Migration(migrations.Migration):
('arp_protect', models.BooleanField(default=False, help_text="Verification assignation de l'IP par dhcp", verbose_name='Arp protect')), ('arp_protect', models.BooleanField(default=False, help_text="Verification assignation de l'IP par dhcp", verbose_name='Arp protect')),
('ra_guard', models.BooleanField(default=False, help_text='Protection contre ra pirate', verbose_name='Ra guard')), ('ra_guard', models.BooleanField(default=False, help_text='Protection contre ra pirate', verbose_name='Ra guard')),
('loop_protect', models.BooleanField(default=False, help_text='Protection contre les boucles', verbose_name='Loop Protect')), ('loop_protect', models.BooleanField(default=False, help_text='Protection contre les boucles', verbose_name='Loop Protect')),
('vlan_tagged', models.ManyToManyField(blank=True, null=True, related_name='vlan_tagged', to='machines.Vlan', verbose_name='VLAN(s) tagged')), ('vlan_tagged', models.ManyToManyField(blank=True, related_name='vlan_tagged', to='machines.Vlan', verbose_name='VLAN(s) tagged')),
('vlan_untagged', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='vlan_untagged', to='machines.Vlan', verbose_name='VLAN untagged')), ('vlan_untagged', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='vlan_untagged', to='machines.Vlan', verbose_name='VLAN untagged')),
], ],
options={ options={
......
...@@ -537,7 +537,6 @@ class PortProfile(AclMixin, RevMixin, models.Model): ...@@ -537,7 +537,6 @@ class PortProfile(AclMixin, RevMixin, models.Model):
'machines.Vlan', 'machines.Vlan',
related_name='vlan_tagged', related_name='vlan_tagged',
blank=True, blank=True,
null=True,
verbose_name=_("VLAN(s) tagged") verbose_name=_("VLAN(s) tagged")
) )
radius_type = models.CharField( radius_type = models.CharField(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment