Commit b6a42260 by Bach Dániel

firewall: fix warnings (null=True)

parent a65d9643
...@@ -330,7 +330,7 @@ class Vlan(AclBase, models.Model): ...@@ -330,7 +330,7 @@ class Vlan(AclBase, models.Model):
'selected below ' 'selected below '
'(typically to the internet).')) '(typically to the internet).'))
snat_to = models.ManyToManyField('self', symmetrical=False, blank=True, snat_to = models.ManyToManyField('self', symmetrical=False, blank=True,
null=True, verbose_name=_('NAT to'), verbose_name=_('NAT to'),
help_text=_( help_text=_(
'Connections to these networks ' 'Connections to these networks '
'should be network address ' 'should be network address '
...@@ -533,7 +533,7 @@ class VlanGroup(models.Model): ...@@ -533,7 +533,7 @@ class VlanGroup(models.Model):
name = models.CharField(max_length=20, unique=True, verbose_name=_('name'), name = models.CharField(max_length=20, unique=True, verbose_name=_('name'),
help_text=_('The name of the group.')) help_text=_('The name of the group.'))
vlans = models.ManyToManyField('Vlan', symmetrical=False, blank=True, vlans = models.ManyToManyField('Vlan', symmetrical=False, blank=True,
null=True, verbose_name=_('vlans'), verbose_name=_('vlans'),
help_text=_('The vlans which are members ' help_text=_('The vlans which are members '
'of the group.')) 'of the group.'))
description = models.TextField(blank=True, verbose_name=_('description'), description = models.TextField(blank=True, verbose_name=_('description'),
...@@ -639,7 +639,7 @@ class Host(models.Model): ...@@ -639,7 +639,7 @@ class Host(models.Model):
help_text=_( help_text=_(
'The person responsible for this host.')) 'The person responsible for this host.'))
groups = models.ManyToManyField('Group', symmetrical=False, blank=True, groups = models.ManyToManyField('Group', symmetrical=False, blank=True,
null=True, verbose_name=_('groups'), verbose_name=_('groups'),
help_text=_( help_text=_(
'Host groups the machine is part of.')) 'Host groups the machine is part of.'))
created_at = models.DateTimeField(auto_now_add=True, created_at = models.DateTimeField(auto_now_add=True,
......
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 sign in to comment