Fix: Nom des produits doivent être unique
Some checks failed
Organisation/sgl/pipeline/head There was a failure building this commit
Some checks failed
Organisation/sgl/pipeline/head There was a failure building this commit
This commit is contained in:
@@ -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"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user