diff --git a/fournée/core/migrations/0007_ingrédient_couleur.py b/fournée/core/migrations/0007_ingrédient_couleur.py index b6e8f36..05a7dfe 100644 --- a/fournée/core/migrations/0007_ingrédient_couleur.py +++ b/fournée/core/migrations/0007_ingrédient_couleur.py @@ -15,7 +15,7 @@ class Migration(migrations.Migration): model_name="ingrédient", name="couleur", field=colorfield.fields.ColorField( - default="#FFFFFF", image_field=None, max_length=25, samples=None + default="#000000", image_field=None, max_length=25, samples=None ), ), ] diff --git a/fournée/core/models.py b/fournée/core/models.py index 2983021..270e388 100644 --- a/fournée/core/models.py +++ b/fournée/core/models.py @@ -33,7 +33,7 @@ class Ingrédient(models.Model): nom = models.CharField(max_length=64) quantité = models.DecimalField(max_digits=6, decimal_places=3) ordre = models.SmallIntegerField(default=0) - couleur = ColorField(default='#FFFFFF') + couleur = ColorField(default='#000000') def __str__(self): return f"{self.nom} ({self.quantité} kg)" diff --git a/fournée/templates/admin/fournée_change_form.html b/fournée/templates/admin/fournée_change_form.html index c5ce616..4c8b657 100644 --- a/fournée/templates/admin/fournée_change_form.html +++ b/fournée/templates/admin/fournée_change_form.html @@ -24,7 +24,7 @@ {% for i in ingrédients %} - {{ i.nom }} + {{ i.nom }} {% endfor %} @@ -48,7 +48,7 @@ {% for i, c in ingrédients %} - {{ i }} + {{ i }} {% endfor %}