Fix: Nom des produits doivent être unique
Some checks failed
Organisation/sgl/pipeline/head There was a failure building this commit

This commit is contained in:
2026-09-18 09:31:46 +00:00
parent 827a164cbd
commit 165894c92b
6 changed files with 56 additions and 3 deletions

View File

@@ -25,7 +25,11 @@ class Produit(models.Model):
("carton", "Carton"),
)
libelle = models.CharField(verbose_name="Libellé", max_length=255)
libelle = models.CharField(
verbose_name="Libellé",
max_length=255,
unique=True
)
quantite_stock = models.PositiveIntegerField(
verbose_name="Quantité actuellement en stock"
)