Fix blenk issue
Le formulaire de modification des infos ne pouvais pas être validé.
This commit is contained in:
parent
99a77851d1
commit
99704649b6
2 changed files with 2 additions and 2 deletions
|
@ -20,7 +20,7 @@ class Migration(migrations.Migration):
|
|||
migrations.AddField(
|
||||
model_name='partitionset',
|
||||
name='infos',
|
||||
field=models.TextField(null=True, verbose_name='Infos utiles'),
|
||||
field=models.TextField(null=True, blank=True, verbose_name='Infos utiles'),
|
||||
preserve_default=True,
|
||||
),
|
||||
]
|
||||
|
|
|
@ -26,7 +26,7 @@ class PartitionSet(models.Model):
|
|||
auteur = models.CharField(max_length=100)
|
||||
category = models.CharField('Types de partitions', max_length=8,
|
||||
choices=PARTITION_TYPES, default="incoming")
|
||||
infos = models.TextField("Infos utiles", null=True)
|
||||
infos = models.TextField("Infos utiles", null=True, blank=True)
|
||||
|
||||
def __str__(self):
|
||||
return("%s - %s [%s]" % (self.nom, self.auteur,
|
||||
|
|
Loading…
Reference in a new issue