Commit d88677a1 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

fix fields.W903

parent 45eb5999
......@@ -117,8 +117,8 @@ class Adhesion(models.Model):
verbose_name="Notes (obsolète)",
help_text="Obsolète, ne plus ajouter d’informations ici.",
)
active_legacy = models.NullBooleanField(
default=None, verbose_name="Adhésion en cours"
active_legacy = models.BooleanField(
default=None, verbose_name="Adhésion en cours", null=True
)
user = models.OneToOneField(User, null=True, on_delete=models.PROTECT)
......
......@@ -463,7 +463,7 @@ class Port(models.Model):
port = models.IntegerField(verbose_name="N° de port")
reserved = models.BooleanField(default=False, verbose_name="réservé")
notes = models.CharField(max_length=256, blank=True, default="")
up = models.NullBooleanField()
up = models.BooleanField(null=True)
def clean(self):
if self.reserved and self.service:
......
Supports Markdown
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